How to use C languege to auto generate number???
example:
1001
1002
than 1st number is fit(1002)
by not using this matter:
pls help!!!Code:int id=101; ......... id++;
/* RAND.C: This program seeds the random-number generator
* with the GetTickCount, then displays 10 random integers.
*/
thx i know aldCode:#include <stdlib.h> #include <stdio.h> #include <winbase.h> void main( void ) { int i; /* Seed the random-number generator with GetTickCount so that the numbers will be different every time we run. */ srand( GetTickCount() ); /* Display 10 numbers. */ for( i = 0; i < 10;i++ ) printf( "%6d\n", rand() ); }
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks