Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: menu Pin
RobJones23-Sep-03 4:56
RobJones23-Sep-03 4:56 
GeneralRe: menu Pin
sardinka23-Sep-03 5:15
sardinka23-Sep-03 5:15 
GeneralRe: menu Pin
RobJones23-Sep-03 5:56
RobJones23-Sep-03 5:56 
GeneralRe: menu Pin
sardinka23-Sep-03 6:34
sardinka23-Sep-03 6:34 
GeneralRe: menu Pin
David Crow23-Sep-03 7:06
David Crow23-Sep-03 7:06 
GeneralRe: menu Pin
Atlantys23-Sep-03 8:01
Atlantys23-Sep-03 8:01 
GeneralRe: menu Pin
jhwurmbach23-Sep-03 21:18
jhwurmbach23-Sep-03 21:18 
GeneralRe: menu Pin
jhwurmbach23-Sep-03 5:18
jhwurmbach23-Sep-03 5:18 
Your while loop is definitely testing the wrong thing. Or is there a typo?

You probably need to drop the useless for( ;; )-loop and switch to a while-loop testing for (choice == 3) as exit-condition.
You obviously need to get the input for choice before this loop.
As last statements in this loop (after the switch block), you need to duplicate the input for choice.
That way, you will be asking for choice in any subsequent loops.
The switch-statement will then have cases only for 1, 2, and default.

Be careful what entering a letter into your float variable does!

An additional hint:
do
// use do-while loop
{
seems to be a very silly comentary. Everyone can see this.
Try not to comment what you do, but why and why exactly so and not different.



Who is 'General Failure'? And why is he reading my harddisk?!?
GeneralRe: menu Pin
sardinka23-Sep-03 5:47
sardinka23-Sep-03 5:47 
GeneralRe: menu Pin
sardinka23-Sep-03 6:02
sardinka23-Sep-03 6:02 
GeneralRe: menu Pin
David Crow23-Sep-03 7:03
David Crow23-Sep-03 7:03 
Generalhelp on drawing application in VC++ Pin
swerajan23-Sep-03 4:31
swerajan23-Sep-03 4:31 
QuestionWhat Profiler message means ? Pin
vgrigor23-Sep-03 4:30
vgrigor23-Sep-03 4:30 
Generalmenu Pin
sardinka23-Sep-03 4:23
sardinka23-Sep-03 4:23 
GeneralRe: menu Pin
RobJones23-Sep-03 4:30
RobJones23-Sep-03 4:30 
GeneralRe: menu Pin
Chris Richardson23-Sep-03 11:04
Chris Richardson23-Sep-03 11:04 
QuestionWhat means such Profiler output ? Pin
vgrigor23-Sep-03 4:04
vgrigor23-Sep-03 4:04 
AnswerRe: What means such Profiler output ? Pin
Mike Dimmick23-Sep-03 5:53
Mike Dimmick23-Sep-03 5:53 
GeneralRe: What means such Profiler output ? Pin
vgrigor23-Sep-03 6:02
vgrigor23-Sep-03 6:02 
Generaldll shared data Pin
umarcool23-Sep-03 3:47
umarcool23-Sep-03 3:47 
GeneralRe: dll shared data Pin
Mike Dimmick23-Sep-03 4:14
Mike Dimmick23-Sep-03 4:14 
GeneralRe: dll shared data Pin
umarcool23-Sep-03 5:35
umarcool23-Sep-03 5:35 
GeneralRe: dll shared data Pin
Alexander M.,27-Sep-03 7:29
Alexander M.,27-Sep-03 7:29 
Generalwriting general plugins fro winamp in VC++. Pin
karteek23-Sep-03 3:40
karteek23-Sep-03 3:40 
Generaldatabase delete help! Pin
coda_x23-Sep-03 2:52
coda_x23-Sep-03 2:52 

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.