Click here to Skip to main content
15,884,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Welcome Pin
Tim Craig10-Apr-10 21:30
Tim Craig10-Apr-10 21:30 
GeneralRe: (*&#@*!^ Templates Pin
Gary R. Wheeler11-Apr-10 1:31
Gary R. Wheeler11-Apr-10 1:31 
GeneralRe: (*&#@*!^ Templates Pin
Tim Craig11-Apr-10 9:36
Tim Craig11-Apr-10 9:36 
QuestionProblem in AT+CSCA command in AT commands. Pin
Le@rner9-Apr-10 19:29
Le@rner9-Apr-10 19:29 
Questionhow to implement three indepedent random number generators in the same subroutine/function Pin
mrby1239-Apr-10 17:34
mrby1239-Apr-10 17:34 
AnswerRe: how to implement three indepedent random number generators in the same subroutine/function Pin
Adam Roderick J9-Apr-10 18:09
Adam Roderick J9-Apr-10 18:09 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function Pin
mrby1239-Apr-10 18:25
mrby1239-Apr-10 18:25 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function Pin
Adam Roderick J9-Apr-10 19:23
Adam Roderick J9-Apr-10 19: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 19:40
mrby1239-Apr-10 19:40 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function Pin
mrby12310-Apr-10 19:34
mrby12310-Apr-10 19:34 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function Pin
Adam Roderick J10-Apr-10 20:52
Adam Roderick J10-Apr-10 20:52 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function Pin
mrby12314-Apr-10 7:21
mrby12314-Apr-10 7:21 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function Pin
mrby12314-Apr-10 7:20
mrby12314-Apr-10 7:20 
Questionpost mouse move, wheel, RClick messages, (captured by CView) to the started thread Pin
m_code9-Apr-10 11:46
m_code9-Apr-10 11:46 
AnswerRe: post mouse move, wheel, RClick messages, (captured by CView) to the started thread Pin
Adam Roderick J9-Apr-10 18:11
Adam Roderick J9-Apr-10 18:11 
GeneralRe: post mouse move, wheel, RClick messages, (captured by CView) to the started thread Pin
m_code9-Apr-10 18:43
m_code9-Apr-10 18:43 
GeneralRe: post mouse move, wheel, RClick messages, (captured by CView) to the started thread Pin
Adam Roderick J9-Apr-10 19:12
Adam Roderick J9-Apr-10 19:12 
QuestionC++ class hierarchy design problem Pin
kylur9-Apr-10 9:00
kylur9-Apr-10 9:00 
AnswerRe: C++ class hierarchy design problem Pin
Jonathan Davies9-Apr-10 10:28
Jonathan Davies9-Apr-10 10:28 
GeneralRe: C++ class hierarchy design problem Pin
kylur12-Apr-10 9:47
kylur12-Apr-10 9:47 
AnswerRe: C++ class hierarchy design problem Pin
Bernódus Kristinsson9-Apr-10 11:04
Bernódus Kristinsson9-Apr-10 11:04 
GeneralRe: C++ class hierarchy design problem Pin
kylur12-Apr-10 10:25
kylur12-Apr-10 10:25 
AnswerRe: C++ class hierarchy design problem Pin
cmk9-Apr-10 14:52
cmk9-Apr-10 14:52 
GeneralRe: C++ class hierarchy design problem Pin
kylur12-Apr-10 10:09
kylur12-Apr-10 10:09 
GeneralRe: C++ class hierarchy design problem Pin
cmk12-Apr-10 12:45
cmk12-Apr-10 12: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.