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

Hello World

Name: Anonymous 2010-11-10 23:41


#include <iostream>
#include <cstdlib>
using namespace std;

int main()
{
    int number;
   
    while (number != RAND_MAX) {
        srand (time(NULL));
        number = rand();
    }
    cout << "hello world!";
}


What does /prague/ think of my first C++ program?

Name: Anonymous 2010-11-11 11:24

I don't understand why use NULL instead of 0

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