Click here to Skip to main content
14,825,375 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ compiler that supports multiple inheritance Pin
CPallini10-Nov-20 2:13
mveCPallini10-Nov-20 2:13 
QuestionI can't compile and put it as a variable and matrix Pin
Member 149848945-Nov-20 5:45
MemberMember 149848945-Nov-20 5:45 
AnswerRe: I can't compile and put it as a variable and matrix Pin
Victor Nijegorodov5-Nov-20 6:58
MemberVictor Nijegorodov5-Nov-20 6:58 
AnswerRe: I can't compile and put it as a variable and matrix Pin
jeron15-Nov-20 7:17
Memberjeron15-Nov-20 7:17 
At a quick glance, you have this
scanf ("%d",&op);

and you have this
scanf("%d");
the second one is missing the variable where you want the data to go.
Similarly with the printf() statements
printf("Placement amount: %d");
you're specifying an integer to be output with the %d, there isn't a corresponding value.
printf("Placement amount: %d", value);   //<== value to print

"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle

AnswerRe: I can't compile and put it as a variable and matrix Pin
Member 149848945-Nov-20 11:57
MemberMember 149848945-Nov-20 11:57 
GeneralRe: I can't compile and put it as a variable and matrix Pin
jeron15-Nov-20 12:29
Memberjeron15-Nov-20 12:29 
GeneralRe: I can't compile and put it as a variable and matrix Pin
Member 149848945-Nov-20 12:47
MemberMember 149848945-Nov-20 12:47 
GeneralRe: I can't compile and put it as a variable and matrix Pin
jeron15-Nov-20 14:21
Memberjeron15-Nov-20 14:21 
GeneralRe: I can't compile and put it as a variable and matrix Pin
jsc4226-Nov-20 5:55
professionaljsc4226-Nov-20 5:55 
GeneralRe: I can't compile and put it as a variable and matrix Pin
David Crow9-Nov-20 2:52
MemberDavid Crow9-Nov-20 2:52 
GeneralRe: I can't compile and put it as a variable and matrix Pin
jeron19-Nov-20 4:05
Memberjeron19-Nov-20 4:05 
Questioni need your help Pin
Member 149820522-Nov-20 11:09
MemberMember 149820522-Nov-20 11:09 
AnswerRe: i need your help Pin
Victor Nijegorodov2-Nov-20 20:36
MemberVictor Nijegorodov2-Nov-20 20:36 
QuestionDifference between current system time and time from user input in c Pin
Member 1497910831-Oct-20 6:00
MemberMember 1497910831-Oct-20 6:00 
AnswerRe: Difference between current system time and time from user input in c Pin
Mircea Neacsu31-Oct-20 6:59
mvaMircea Neacsu31-Oct-20 6:59 
GeneralRe: Difference between current system time and time from user input in c Pin
Richard Andrew x6431-Oct-20 8:03
professionalRichard Andrew x6431-Oct-20 8:03 
GeneralRe: Difference between current system time and time from user input in c Pin
Mircea Neacsu31-Oct-20 8:14
mvaMircea Neacsu31-Oct-20 8:14 
GeneralRe: Difference between current system time and time from user input in c Pin
Richard MacCutchan31-Oct-20 9:38
mveRichard MacCutchan31-Oct-20 9:38 
GeneralRe: Difference between current system time and time from user input in c Pin
Richard Andrew x6431-Oct-20 10:28
professionalRichard Andrew x6431-Oct-20 10:28 
GeneralRe: Difference between current system time and time from user input in c Pin
Richard MacCutchan31-Oct-20 21:22
mveRichard MacCutchan31-Oct-20 21:22 
GeneralRe: Difference between current system time and time from user input in c Pin
Richard Andrew x641-Nov-20 9:58
professionalRichard Andrew x641-Nov-20 9:58 
GeneralRe: Difference between current system time and time from user input in c Pin
Richard MacCutchan1-Nov-20 21:58
mveRichard MacCutchan1-Nov-20 21:58 
AnswerRe: Difference between current system time and time from user input in c Pin
Daniel Pfeffer31-Oct-20 11:24
professionalDaniel Pfeffer31-Oct-20 11:24 
QuestionSearching and displaying a record in Array of Structure in c Pin
Member 1497910829-Oct-20 16:45
MemberMember 1497910829-Oct-20 16:45 
AnswerRe: Searching and displaying a record in Array of Structure in c Pin
CPallini29-Oct-20 21:27
mveCPallini29-Oct-20 21:27 

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.