Post: Need help with C++. Win32 Console programming
04-10-2011, 08:11 PM #1
Si1entDev
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); I am using CodeBlocks an well when I make a new program as a console app this is what I do first to make sure everything is right.

#include <iostream>
usenamespace std;
int main()
cout << "Hello Premium User" <<;
return 0;

Thats what I did than ran it and it for some reason says Hello World! after I never put it to say that. I do not really know how to fix this. So if you could please help ill +rep you if you helped me successfully
04-12-2011, 03:09 PM #2
Originally posted by Si1entDev View Post
I am using CodeBlocks an well when I make a new program as a console app this is what I do first to make sure everything is right.

#include <iostream>
usenamespace std;
int main()
cout << "Hello Premium User" <<;
return 0;

Thats what I did than ran it and it for some reason says Hello World! after I never put it to say that. I do not really know how to fix this. So if you could please help ill +rep you if you helped me successfully


You program should be like the following :

    #include <iostream>
using namespace std
int main()
{
cout << "Hello Premium User" <<endl;
system("pause");
return 0;
}

The program your using to compile your program is seeing an error so it can not debug so there for it is buliding a simple hello world program . If this dosent work then try a differnt compiler Smile
04-12-2011, 10:03 PM #3
Si1entDev
Bounty hunter
I figured this out also myself
04-13-2011, 09:25 PM #4
Originally posted by Si1entDev View Post
I figured this out also myself


????



The message you have entered is too short. Please lengthen your message to at least 10 characters.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo