Thread: Dev c++
View Single Post
Old Feb 20th, 2005, 8:33 PM   #14
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
This would be better..

#include <iostream>
#include <conio.h>
using namespace std;

int main() {
    cout << "Hello world!" << endl;
    // endl = End of line, ends the output line and starts a new one...

    cout << "endl put this here... ";
    cout << "instead of here.";

    getch();
    // included by conio.h
    //   - Waits for keyboard input and the continues...
    //   - Shows nothing on the screen...

    return 0;
}
__________________


Last edited by tempest; Feb 20th, 2005 at 8:37 PM.
tempest is offline   Reply With Quote