Click here to Skip to main content
14,927,127 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Blum Blum Shub Pin
Richard MacCutchan5-Oct-20 9:23
mveRichard MacCutchan5-Oct-20 9:23 
AnswerRe: Blum Blum Shub Pin
ZurdoDev5-Oct-20 10:15
professionalZurdoDev5-Oct-20 10:15 
AnswerRe: Blum Blum Shub Pin
David Crow6-Oct-20 2:39
MemberDavid Crow6-Oct-20 2:39 
GeneralRe: Blum Blum Shub Pin
Member 149564756-Oct-20 10:32
MemberMember 149564756-Oct-20 10:32 
GeneralRe: Blum Blum Shub Pin
Richard Andrew x646-Oct-20 10:45
professionalRichard Andrew x646-Oct-20 10:45 
SuggestionRe: Blum Blum Shub Pin
David Crow6-Oct-20 16:05
MemberDavid Crow6-Oct-20 16:05 
GeneralRe: Blum Blum Shub Pin
Member 149564757-Oct-20 7:13
MemberMember 149564757-Oct-20 7:13 
AnswerRe: Blum Blum Shub Pin
David Crow7-Oct-20 7:31
MemberDavid Crow7-Oct-20 7:31 
Member 14956475 wrote:
...but how can i acces argv[1] to get D as a command line argument?
The same way you would access parameters from within any other function. main() is no different. See here for more.

Member 14956475 wrote:
...is it possible to use srand command?
Your code is already doing that. However, the way in which you are using it is meaningless since you are also not calling rand(). rand() by itself will always generate the same sequence of numbers. srand() will "seed" the number generation process to start at a different spot.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles


GeneralRe: Blum Blum Shub Pin
Member 149564757-Oct-20 7:39
MemberMember 149564757-Oct-20 7:39 
GeneralRe: Blum Blum Shub Pin
David Crow7-Oct-20 7:55
MemberDavid Crow7-Oct-20 7:55 
AnswerRe: Blum Blum Shub Pin
Member 149564758-Oct-20 1:36
MemberMember 149564758-Oct-20 1:36 
GeneralRe: Blum Blum Shub Pin
Richard MacCutchan8-Oct-20 2:27
mveRichard MacCutchan8-Oct-20 2:27 
QuestionWritePrinter Fails to Print on Inkjet Printer Pin
sandford_j29-Sep-20 6:52
professionalsandford_j29-Sep-20 6:52 
QuestionRe: WritePrinter Fails to Print on Inkjet Printer Pin
David Crow29-Sep-20 16:44
MemberDavid Crow29-Sep-20 16:44 
AnswerRe: WritePrinter Fails to Print on Inkjet Printer Pin
sandford_j29-Sep-20 22:16
professionalsandford_j29-Sep-20 22:16 
QuestionRe: WritePrinter Fails to Print on Inkjet Printer Pin
David Crow30-Sep-20 2:01
MemberDavid Crow30-Sep-20 2:01 
AnswerRe: WritePrinter Fails to Print on Inkjet Printer Pin
sandford_j30-Sep-20 4:54
professionalsandford_j30-Sep-20 4:54 
AnswerRe: WritePrinter Fails to Print on Inkjet Printer Pin
Gerry Schmitz29-Sep-20 18:33
mveGerry Schmitz29-Sep-20 18:33 
GeneralRe: WritePrinter Fails to Print on Inkjet Printer Pin
sandford_j29-Sep-20 22:23
professionalsandford_j29-Sep-20 22:23 
AnswerRe: WritePrinter Fails to Print on Inkjet Printer Pin
mo149230-Sep-20 8:55
Membermo149230-Sep-20 8:55 
GeneralRe: WritePrinter Fails to Print on Inkjet Printer Pin
sandford_j30-Sep-20 12:05
professionalsandford_j30-Sep-20 12:05 
AnswerRe: WritePrinter Fails to Print on Inkjet Printer Pin
mo14921-Oct-20 1:18
Membermo14921-Oct-20 1:18 
GeneralRe: WritePrinter Fails to Print on Inkjet Printer Pin
sandford_j1-Oct-20 2:53
professionalsandford_j1-Oct-20 2:53 
QuestionCopying to ClipBoard By using SendInput, Failure....[Solved] Pin
EuiyongYun28-Sep-20 14:37
MemberEuiyongYun28-Sep-20 14:37 
AnswerRe: Copying to ClipBoard By using SendInput, Failure.... Pin
Victor Nijegorodov28-Sep-20 22:59
MemberVictor Nijegorodov28-Sep-20 22:59 

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.