Click here to Skip to main content
15,890,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSharing XML object over TCP/IP Pin
6-Feb-01 17:34
suss6-Feb-01 17:34 
GeneralHELP Pin
6-Feb-01 17:17
suss6-Feb-01 17:17 
GeneralGotta love these descriptive headers.... Pin
Christian Graus6-Feb-01 21:36
protectorChristian Graus6-Feb-01 21:36 
General*lol* Pin
.::RockNix::.7-Feb-01 0:03
.::RockNix::.7-Feb-01 0:03 
Generalseriously though... Pin
l a u r e n7-Feb-01 7:27
l a u r e n7-Feb-01 7:27 
GeneralRe: seriously though... Pin
Christian Graus7-Feb-01 8:27
protectorChristian Graus7-Feb-01 8:27 
GeneralNeed HELP!! Pin
6-Feb-01 12:03
suss6-Feb-01 12:03 
GeneralRe: Use srand()... Pin
Brendan Tregear6-Feb-01 12:08
Brendan Tregear6-Feb-01 12:08 
From MSDN, Use srand() to seed the random-number generator

/* RAND.C: This program seeds the random-number generator
* with the time, then displays 10 random integers.
*/

#include <stdlib.h>
#include <stdio.h>
#include <time.h>

void main( void )
{
int i;

/* Seed the random-number generator with current time so that
* the numbers will be different every time we run.
*/
srand( (unsigned)time( NULL ) );

/* Display 10 numbers. */
for( i = 0; i < 10;i++ )
printf( " %6d\n", rand() );
}


Output

6929
8026
21987
30734
20587
6699
22034
25051
7988
10104
GeneralYou save my day thanks.... Pin
7-Feb-01 0:20
suss7-Feb-01 0:20 
GeneralListView Pin
6-Feb-01 11:00
suss6-Feb-01 11:00 
GeneralRe: ListView Pin
Michael Dunn6-Feb-01 14:41
sitebuilderMichael Dunn6-Feb-01 14:41 
Generallistbox Pin
6-Feb-01 8:36
suss6-Feb-01 8:36 
GeneralRe: listbox Pin
Michael Dunn6-Feb-01 14:39
sitebuilderMichael Dunn6-Feb-01 14:39 
Generalhelp:The image identification of the number plate Pin
6-Feb-01 4:54
suss6-Feb-01 4:54 
GeneralRe: help:The image identification of the number plate Pin
Brendan Tregear6-Feb-01 12:02
Brendan Tregear6-Feb-01 12:02 
Generaltab characters in CTreeView Pin
confalonieri6-Feb-01 3:24
confalonieri6-Feb-01 3:24 
GeneralRe: tab characters in CTreeView Pin
6-Feb-01 23:18
suss6-Feb-01 23:18 
GeneralRTF Control : drawing a line Pin
F Braem6-Feb-01 3:20
F Braem6-Feb-01 3:20 
GeneralRTF Control : drawing a line Pin
F Braem6-Feb-01 3:16
F Braem6-Feb-01 3:16 
GeneralCCheckListBox question... Pin
l a u r e n6-Feb-01 1:48
l a u r e n6-Feb-01 1:48 
GeneralRe: CCheckListBox question... Pin
Jason De Arte6-Feb-01 11:27
Jason De Arte6-Feb-01 11:27 
GeneralNeed a litle help.. Pin
6-Feb-01 0:12
suss6-Feb-01 0:12 
GeneralRe: Need a litle help.. Pin
l a u r e n6-Feb-01 1:52
l a u r e n6-Feb-01 1:52 
GeneralRe: Need a litle help.. Pin
l a u r e n6-Feb-01 1:53
l a u r e n6-Feb-01 1:53 
GeneralRe: Need a litle help.. Pin
6-Feb-01 10:48
suss6-Feb-01 10:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.