Click here to Skip to main content
15,797,330 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Welcome Pin
Tim Craig10-Apr-10 22:30
Tim Craig10-Apr-10 22:30 
GeneralRe: (*&#@*!^ Templates Pin
Gary R. Wheeler11-Apr-10 2:31
Gary R. Wheeler11-Apr-10 2:31 
GeneralRe: (*&#@*!^ Templates Pin
Tim Craig11-Apr-10 10:36
Tim Craig11-Apr-10 10:36 
QuestionProblem in AT+CSCA command in AT commands. Pin
Le@rner9-Apr-10 20:29
Le@rner9-Apr-10 20:29 
Questionhow to implement three indepedent random number generators in the same subroutine/function Pin
mrby1239-Apr-10 18:34
mrby1239-Apr-10 18:34 
AnswerRe: how to implement three indepedent random number generators in the same subroutine/function Pin
Adam Roderick J9-Apr-10 19:09
Adam Roderick J9-Apr-10 19:09 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function Pin
mrby1239-Apr-10 19:25
mrby1239-Apr-10 19:25 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function Pin
Adam Roderick J9-Apr-10 20:23
Adam Roderick J9-Apr-10 20:23 
Just check this.
int rand1( int nData)
{
return rand() % 100 + nData;
}
int main(int argc, char *argv[])
{
int Temp;
srand(time(NULL));
for( int i = 0; i< 11; i++)
{
Temp = rand1(1) ;
cout<<"Num1=="<<temp<<endl;
temp="rand1(2);
" cout<<"num2="="<<Temp<<endl;
" cout<<"num3="="<<Temp<<endl;
" }
="" return="" 0;
}
<div="" class="signature">Величие не Бога может быть недооценена.
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function [modified] Pin
mrby1239-Apr-10 20:40
mrby1239-Apr-10 20:40 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function Pin
mrby12310-Apr-10 20:34
mrby12310-Apr-10 20:34 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function Pin
Adam Roderick J10-Apr-10 21:52
Adam Roderick J10-Apr-10 21:52 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function Pin
mrby12314-Apr-10 8:21
mrby12314-Apr-10 8:21 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function Pin
mrby12314-Apr-10 8:20
mrby12314-Apr-10 8:20 
Questionpost mouse move, wheel, RClick messages, (captured by CView) to the started thread Pin
m_code9-Apr-10 12:46
m_code9-Apr-10 12:46 
AnswerRe: post mouse move, wheel, RClick messages, (captured by CView) to the started thread Pin
Adam Roderick J9-Apr-10 19:11
Adam Roderick J9-Apr-10 19:11 
GeneralRe: post mouse move, wheel, RClick messages, (captured by CView) to the started thread Pin
m_code9-Apr-10 19:43
m_code9-Apr-10 19:43 
GeneralRe: post mouse move, wheel, RClick messages, (captured by CView) to the started thread Pin
Adam Roderick J9-Apr-10 20:12
Adam Roderick J9-Apr-10 20:12 
QuestionC++ class hierarchy design problem Pin
kylur9-Apr-10 10:00
kylur9-Apr-10 10:00 
AnswerRe: C++ class hierarchy design problem Pin
Jonathan Davies9-Apr-10 11:28
Jonathan Davies9-Apr-10 11:28 
GeneralRe: C++ class hierarchy design problem Pin
kylur12-Apr-10 10:47
kylur12-Apr-10 10:47 
AnswerRe: C++ class hierarchy design problem Pin
Bernódus Kristinsson9-Apr-10 12:04
Bernódus Kristinsson9-Apr-10 12:04 
GeneralRe: C++ class hierarchy design problem Pin
kylur12-Apr-10 11:25
kylur12-Apr-10 11:25 
AnswerRe: C++ class hierarchy design problem Pin
cmk9-Apr-10 15:52
cmk9-Apr-10 15:52 
GeneralRe: C++ class hierarchy design problem Pin
kylur12-Apr-10 11:09
kylur12-Apr-10 11:09 
GeneralRe: C++ class hierarchy design problem Pin
cmk12-Apr-10 13:45
cmk12-Apr-10 13:45 

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.