Click here to Skip to main content
16,011,542 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Closing Document assertion? - partial answer Pin
Serge Krynine6-Mar-02 19:39
Serge Krynine6-Mar-02 19:39 
AnswerRe: Closing Document assertion? Pin
Michael Dunn6-Mar-02 19:50
sitebuilderMichael Dunn6-Mar-02 19:50 
AnswerRe: Closing Document assertion? Pin
Serge Krynine6-Mar-02 20:03
Serge Krynine6-Mar-02 20:03 
GeneralRe: Closing Document assertion? Pin
Richard Everingham6-Mar-02 20:25
Richard Everingham6-Mar-02 20:25 
AnswerRe: Closing Document assertion? Pin
Roger Allen7-Mar-02 5:04
Roger Allen7-Mar-02 5:04 
QuestionHow to open recordset using command object Pin
6-Mar-02 18:12
suss6-Mar-02 18:12 
AnswerRe: How to open recordset using command object Pin
Mazdak6-Mar-02 19:26
Mazdak6-Mar-02 19:26 
General(read) rand() function. Pin
SilverShalkin6-Mar-02 16:05
SilverShalkin6-Mar-02 16:05 
why i posted (read) was because i already posted a thread just like this, and i wanted to renew it in a way. all the other responses were great, and i looked up allot of new things that helped allot. Now, the only part that i cannot seem to get to work is the rand().

If there is an artical or webpage that explains random numbers, please give me the address, or link. Thanks.

But if there is not, or you simply dont know, or dont care about giving it, or like to respond to questions. my question is... "Like the old one"

I want to generate a number in a random form. 1-10. with the number, i wanted to use if statments such as:

if (rand() == 1);
somthing
if (rand() == 2);
somthing

And so on. I dont know if that is how you declare an if statment with a rand(), just bean toying with for a long while, and that seems most correct at the moment.

on the other thread i got the response of

rand()%11 was for 1-10. But i dont think that is the end of it, what else am i suppose to add to this, or is it the end?

If that is the case, then, how do you declare a rand() to = to 0?

Thanks all.
~SilverShalkin

ps... as you can see, im at the point of hair ripping. sorry if some of this is hard to understand or unorganized. "simply tired"




Rose | [Rose] "for life is to precious to spend in the dark wonders of a dream,
but without it, life simply becomes a dream." "some can relate Smile | :) " Rose | [Rose]
GeneralRe: (read) rand() function. Pin
Serge Krynine6-Mar-02 16:36
Serge Krynine6-Mar-02 16:36 
GeneralRe: (read) rand() function. Pin
SilverShalkin6-Mar-02 17:05
SilverShalkin6-Mar-02 17:05 
GeneralRe: (read) rand() function. Pin
Nish Nishant6-Mar-02 17:22
sitebuilderNish Nishant6-Mar-02 17:22 
GeneralRe: (read) rand() function. Pin
Serge Krynine6-Mar-02 17:25
Serge Krynine6-Mar-02 17:25 
GeneralRe: (read) rand() function. Pin
Christian Graus6-Mar-02 21:33
protectorChristian Graus6-Mar-02 21:33 
GeneralRe: (read) rand() function. Pin
SilverShalkin7-Mar-02 3:01
SilverShalkin7-Mar-02 3:01 
GeneralRe: (read) rand() function. Pin
Christian Graus7-Mar-02 9:29
protectorChristian Graus7-Mar-02 9:29 
Generala question about using tree control in atl Pin
realfly6-Mar-02 14:24
realfly6-Mar-02 14:24 
GeneralRe: a question about using tree control in atl Pin
Paul M Watt6-Mar-02 18:53
mentorPaul M Watt6-Mar-02 18:53 
GeneralRe: a question about using tree control in atl Pin
realfly6-Mar-02 19:21
realfly6-Mar-02 19:21 
GeneralAutoComplete Members from Dll Pin
MarkPQ6-Mar-02 13:09
MarkPQ6-Mar-02 13:09 
GeneralRe: AutoComplete Members from Dll Pin
Michael P Butler7-Mar-02 0:33
Michael P Butler7-Mar-02 0:33 
GeneralSleep() Pin
6-Mar-02 12:42
suss6-Mar-02 12:42 
GeneralRe: Sleep() Pin
Serge Krynine6-Mar-02 12:49
Serge Krynine6-Mar-02 12:49 
GeneralRe: Sleep() Pin
6-Mar-02 13:36
suss6-Mar-02 13:36 
GeneralRe: Sleep() Pin
Christian Graus6-Mar-02 14:42
protectorChristian Graus6-Mar-02 14:42 
GeneralRe: Sleep() Pin
SilverShalkin6-Mar-02 13:14
SilverShalkin6-Mar-02 13:14 

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.