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

Pages: 1-

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-10 23:51

Don't use C++.

Name: Anonymous 2010-11-10 23:53

Don't seed the random number each time. Sages are also considered common courtesy here.

Name: Anonymous 2010-11-11 3:39

>>1
This only shows that you don't understand srand() and/or time(). HIBT?

Name: Anonymous 2010-11-11 5:03

>>4
UNDERSTAND MY ANUS

Name: Anonymous 2010-11-11 11:24

I don't understand why use NULL instead of 0

Name: Anonymous 2010-11-11 15:37

>>6
GetTimeInSecondsEx((lpLPARAM*)0, NULL, NULL, NULL, NULL, (pINT*)0, NULL, NULL, NULL, NULL);

Name: Anonymous 2010-11-25 18:22

Name: Anonymous 2010-11-28 0:15

Name: Anonymous 2010-12-17 1:22

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Name: Anonymous 2011-01-31 20:04

<-- check em dubz

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