Decimator
03-10-02, 06:05 PM
ok why won't this work
#include <Iostream>
int main()
{
STD::COUT << "Hello world!\N";
return 0;
}
#include <Iostream>
int main()
{
STD::COUT << "Hello world!\N";
return 0;
}
|
|
View Full Version : i am a newbie at C++ HELP! Decimator 03-10-02, 06:05 PM ok why won't this work #include <Iostream> int main() { STD::COUT << "Hello world!\N"; return 0; } James R 03-10-02, 06:09 PM Do you mean: #include <stdio.h> ? If so, I'm not sure what the problem is. Decimator 03-12-02, 11:22 AM me neither and now i'm pissed maybe i need a better compiler all i have is this crackerjack DEV C++ one i am thinking about geting microsoft C++ Visual 6.0 but what's the diff between visual and non visual? GRO$$ 03-14-02, 12:27 AM if u wanna learn just c++ u wont need visual... visual means you can make windows and stuff... i have visual and i like it for everything, nice layout, great debugger, overall nice. as for your program i think you need to include iostram, not stdio, if you use stdio, then use printf("Hello World.\n"); instead of cout... thats C way, cout is C++ omarkhan 05-02-02, 06:35 PM C++ Chapter 1 (http://www.eastcoastgames.com/cpp/chapter1.html) #include <iostream.h> void main() { cout<<"Hello World!"<<endl; } Decimator 05-06-02, 05:44 PM Yeah tnax fot the help guys. Tyler 05-06-02, 06:34 PM Stick with Dev, it does everything you need. #include "stdfx.h" #include (iostream.h) - should be triangle brackets, not round ones void main() { cout<<"Hello World\n"; } by the way |