Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Different results with debug and release version of simulation program Pin
mass8520-Sep-09 4:46
mass8520-Sep-09 4:46 
GeneralRe: Different results with debug and release version of simulation program Pin
Richard MacCutchan20-Sep-09 5:00
mveRichard MacCutchan20-Sep-09 5:00 
GeneralRe: Different results with debug and release version of simulation program Pin
mass8520-Sep-09 5:24
mass8520-Sep-09 5:24 
GeneralRe: Different results with debug and release version of simulation program Pin
Richard MacCutchan20-Sep-09 7:20
mveRichard MacCutchan20-Sep-09 7:20 
GeneralRe: Different results with debug and release version of simulation program Pin
mass8520-Sep-09 9:47
mass8520-Sep-09 9:47 
GeneralRe: Different results with debug and release version of simulation program Pin
CPallini20-Sep-09 10:01
mveCPallini20-Sep-09 10:01 
GeneralRe: Different results with debug and release version of simulation program Pin
mass8520-Sep-09 10:12
mass8520-Sep-09 10:12 
GeneralRe: Different results with debug and release version of simulation program Pin
Richard MacCutchan20-Sep-09 10:08
mveRichard MacCutchan20-Sep-09 10:08 
mass85 wrote:
Most of the temp values are 0... which is of course incorrect. Do you know, what might be the reason for that?


No idea whatever, but obviously some part of your randomiser is incorrect.

mass85 wrote:
int uniform(int X){
h = int ( double (X) / q );
X = a*(X - q*h) - r*h;
if (X < 0) X = X + m;
return X;
}

Try using more meaningful variable names as it can often aid in problem diagnosis.
GeneralRe: Different results with debug and release version of simulation program Pin
mass8520-Sep-09 10:26
mass8520-Sep-09 10:26 
GeneralRe: Different results with debug and release version of simulation program Pin
Richard MacCutchan20-Sep-09 10:35
mveRichard MacCutchan20-Sep-09 10:35 
GeneralRe: Different results with debug and release version of simulation program Pin
mass8520-Sep-09 10:54
mass8520-Sep-09 10:54 
Question[SOLVED}How to activate a menu [modified] Pin
simion31420-Sep-09 0:31
simion31420-Sep-09 0:31 
AnswerRe: How to activate a menu Pin
GameZelda20-Sep-09 0:58
GameZelda20-Sep-09 0:58 
QuestionBinding a Memo Field Pin
Cal Brass19-Sep-09 14:48
Cal Brass19-Sep-09 14:48 
Question[Message Deleted] Pin
HighCloud19-Sep-09 8:42
HighCloud19-Sep-09 8:42 
AnswerRe: C# Programatic Font Install Pin
«_Superman_»19-Sep-09 20:20
professional«_Superman_»19-Sep-09 20:20 
AnswerRe: C# Programatic Font Install Pin
Code-o-mat19-Sep-09 23:16
Code-o-mat19-Sep-09 23:16 
Questioncan i compile the c programs using commands in coomand prompt undr windows,if possible plz post the procedure Pin
raghava.thummapudi19-Sep-09 7:28
raghava.thummapudi19-Sep-09 7:28 
AnswerRe: can i compile the c programs using commands in coomand prompt undr windows,if possible plz post the procedure Pin
Chris Losinger19-Sep-09 7:50
professionalChris Losinger19-Sep-09 7:50 
AnswerRe: can i compile the c programs using commands in coomand prompt undr windows,if possible plz post the procedure Pin
Saurabh.Garg19-Sep-09 12:58
Saurabh.Garg19-Sep-09 12:58 
QuestionProblem with SAPI and Windows Vista [modified] Pin
FredBrina19-Sep-09 5:53
FredBrina19-Sep-09 5:53 
AnswerRe: Problem with SAPI and Windows Vista Pin
Richard MacCutchan20-Sep-09 2:20
mveRichard MacCutchan20-Sep-09 2:20 
GeneralRe: Problem with SAPI and Windows Vista Pin
FredBrina20-Sep-09 7:10
FredBrina20-Sep-09 7:10 
GeneralRe: Problem with SAPI and Windows Vista Pin
Richard MacCutchan20-Sep-09 10:14
mveRichard MacCutchan20-Sep-09 10:14 
GeneralRe: Problem with SAPI and Windows Vista Pin
FredBrina20-Sep-09 16:43
FredBrina20-Sep-09 16:43 

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.