Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ Console app, Hello World! Problem

Name: Anonymous 2006-07-05 19:44

Im just starting C++ but i have got stuck straight away!

I have:

#include <iostream>
using namespace std;

int main()
{
    cout << "Hello World!\n" << endl;
    return 0;
}


It works fine, but just as it appears, it closes..and in the tutorial it shows the console with: 'press any key to continue...' under 'Hello World!'. Please Help!

Name: Anonymous 2006-11-18 15:43

>>43
So you are saying C++ sucks just because it is a little more complicated than C because it has has good OO, first-class functions, closures, etc.?

Yes, those added features do make it a little harder, but in the end, they make things easier.  It is really not a good idea to evaluate languages on what learning them is like, although it's hard to evaluate them any other way.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List