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:31

>>41
C is not the best for starters but it IS reasonably easy, or at least it doesn't suck. It's one thing to be easy and another thing to be easy to do things with. It's not easy to do string manipulation and higher level stuff in C. But the language itself is easy; I'd say far easier (and smaller) than Python, and it should be, being a low-level language. If C were actually harder than a high-level language supporting good OO, first-class functions, closures, etc., C would be a piece of shit. And it isn't. BTW, that's why C++ IS a piece of shit.

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