Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionvariable and class View Pin
durban220-Apr-09 21:11
durban220-Apr-09 21:11 
AnswerRe: variable and class View Pin
CPallini20-Apr-09 21:49
mveCPallini20-Apr-09 21:49 
QuestionWindows events Pin
sunny_vc20-Apr-09 19:05
sunny_vc20-Apr-09 19:05 
AnswerRe: Windows events Pin
Stuart Dootson20-Apr-09 20:09
professionalStuart Dootson20-Apr-09 20:09 
GeneralRe: Windows events Pin
sunny_vc20-Apr-09 20:15
sunny_vc20-Apr-09 20:15 
GeneralRe: Windows events Pin
Stuart Dootson20-Apr-09 21:05
professionalStuart Dootson20-Apr-09 21:05 
QuestionHow to Read data using IfStream in while loop? [modified] Pin
pohcb_sonic20-Apr-09 16:31
pohcb_sonic20-Apr-09 16:31 
QuestionRe: How to Read data using IfStream? Pin
David Crow20-Apr-09 17:17
David Crow20-Apr-09 17:17 
pohcb_sonic wrote:
if (pf == 'P'){


What is pf? Where is it assigned a value?

pohcb_sonic wrote:
totalCU = 0;


Where is this declared?

pohcb_sonic wrote:
S[Cols].setCode(module, Cols);


Shouldn't this be:

S[Rows].setCode(module, Cols);
pohcb_sonic wrote:
while (Cols < 4)


When does Cols ever get reset so that this while() loop can run again for the next student?

pohcb_sonic wrote:
totalCred = totalCred + credits;


Does totalCred accumulate for all four students?

What does your code do if more students are added, or a student adds/drops a class? Hint: it won't work.

All that aside, is your intent to do this in C using a few C++ objects, or create your own C++ classes and use the STL?

"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

"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


AnswerRe: How to Read data using IfStream? Pin
pohcb_sonic20-Apr-09 18:42
pohcb_sonic20-Apr-09 18:42 
QuestionRe: How to Read data using IfStream? Pin
David Crow21-Apr-09 3:12
David Crow21-Apr-09 3:12 
AnswerRe: How to Read data using IfStream? Pin
pohcb_sonic21-Apr-09 14:31
pohcb_sonic21-Apr-09 14:31 
QuestionRe: How to Read data using IfStream? Pin
David Crow22-Apr-09 2:50
David Crow22-Apr-09 2:50 
QuestionHaving trouble converting Java Code to C++ Pin
NxtGr8One20-Apr-09 16:23
NxtGr8One20-Apr-09 16:23 
AnswerRe: Having trouble converting Java Code to C++ Pin
David Crow20-Apr-09 16:51
David Crow20-Apr-09 16:51 
QuestionC++ Directory Functions Pin
gamefreak229120-Apr-09 15:37
gamefreak229120-Apr-09 15:37 
AnswerRe: C++ Directory Functions [modified] Pin
Joe Woodbury20-Apr-09 16:33
professionalJoe Woodbury20-Apr-09 16:33 
GeneralRe: C++ Directory Functions Pin
gamefreak229120-Apr-09 17:01
gamefreak229120-Apr-09 17:01 
QuestionRe: C++ Directory Functions Pin
David Crow20-Apr-09 17:37
David Crow20-Apr-09 17:37 
AnswerRe: C++ Directory Functions Pin
gamefreak229120-Apr-09 18:16
gamefreak229120-Apr-09 18:16 
AnswerRe: C++ Directory Functions Pin
krmed21-Apr-09 3:03
krmed21-Apr-09 3:03 
QuestionWhat I should Use...bitset, vector &LT bool&GT, or bit_vector? Pin
JohnnyG20-Apr-09 13:51
JohnnyG20-Apr-09 13:51 
AnswerRe: What I should Use...bitset, vector &LT bool&GT, or bit_vector? Pin
Stuart Dootson20-Apr-09 20:07
professionalStuart Dootson20-Apr-09 20:07 
GeneralRe: What I should Use...bitset, vector &LT bool&GT, or bit_vector? Pin
JohnnyG21-Apr-09 11:18
JohnnyG21-Apr-09 11:18 
Questionsprintf and rounding issues [modified] Pin
Jim Crafton20-Apr-09 8:27
Jim Crafton20-Apr-09 8:27 
AnswerRe: sprintf and rounding issues Pin
Stuart Dootson20-Apr-09 8:57
professionalStuart Dootson20-Apr-09 8:57 

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.