Click here to Skip to main content
15,846,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBuilding for Win98 from XP Pin
Jo Fredrickson14-May-03 19:45
Jo Fredrickson14-May-03 19:45 
GeneralRe: Building for Win98 from XP Pin
Bartosz Bien14-May-03 20:55
Bartosz Bien14-May-03 20:55 
GeneralRe: Building for Win98 from XP Pin
Joan M14-May-03 22:07
professionalJoan M14-May-03 22:07 
GeneralRe: Building for Win98 from XP Pin
Jo Fredrickson15-May-03 5:26
Jo Fredrickson15-May-03 5:26 
Generalproblem in SHFileOperation Pin
roboo14-May-03 17:07
roboo14-May-03 17:07 
GeneralRe: problem in SHFileOperation Pin
valikac14-May-03 20:53
valikac14-May-03 20:53 
Generalfreshman Pin
linex14-May-03 14:33
linex14-May-03 14:33 
GeneralRe: freshman Pin
John R. Shaw14-May-03 14:51
John R. Shaw14-May-03 14:51 
Sounds like you want to generate a list of radom numbers given a user supplied size.

#include "stdlib.h"
int* CreateArrayOfRadomNumbers(int nSize)
{
    int* pArray = new int[nSize];
    if( NULL == pArray )
       return NULL; // memory allocation error
    for( int i=0; i<nsize; ++i="" )
="" {
="" parray[i]="rand();
" }
="" return="" parray;
}
<pre\="">

GeneralRe: freshman Pin
Nitron14-May-03 15:22
Nitron14-May-03 15:22 
GeneralRe: freshman Pin
Gary Kirkham14-May-03 15:43
Gary Kirkham14-May-03 15:43 
GeneralRe: freshman Pin
linex15-May-03 1:46
linex15-May-03 1:46 
GeneralOS detection Pin
elisap14-May-03 14:11
elisap14-May-03 14:11 
GeneralRe: OS detection Pin
Michael Dunn14-May-03 14:34
sitebuilderMichael Dunn14-May-03 14:34 
GeneralRe: OS detection Pin
Trollslayer15-May-03 2:35
mentorTrollslayer15-May-03 2:35 
GeneralRe: OS detection Pin
John M. Drescher14-May-03 14:54
John M. Drescher14-May-03 14:54 
GeneralMFC in VS.NET 2003 Pin
paulb14-May-03 14:09
paulb14-May-03 14:09 
GeneralRe: MFC in VS.NET 2003 Pin
Wes Aday14-May-03 14:41
professionalWes Aday14-May-03 14:41 
Generalcontrol styles Pin
emrosa14-May-03 14:05
emrosa14-May-03 14:05 
GeneralRe: control styles Pin
John R. Shaw14-May-03 14:31
John R. Shaw14-May-03 14:31 
GeneralRe: control styles Pin
Renjith Ramachandran15-May-03 6:10
Renjith Ramachandran15-May-03 6:10 
GeneralWSAAccept query Pin
noxon14-May-03 14:03
noxon14-May-03 14:03 
GeneralRe: WSAAccept query Pin
Renjith Ramachandran15-May-03 6:19
Renjith Ramachandran15-May-03 6:19 
GeneralDrawing, and text with an angle Pin
Jorgen E.14-May-03 14:00
Jorgen E.14-May-03 14:00 
GeneralRe: Drawing, and text with an angle Pin
J. Dunlap14-May-03 14:05
J. Dunlap14-May-03 14:05 
Generalmessage handler Pin
K. Shaffer14-May-03 12:11
K. Shaffer14-May-03 12:11 

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.