Click here to Skip to main content
15,915,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionC CODE HELP!!! Pin
lincoding20-Feb-09 3:23
lincoding20-Feb-09 3:23 
AnswerRe: C CODE HELP!!! (PROPERLY FORMATTED!!!!!) Pin
Iain Clarke, Warrior Programmer20-Feb-09 4:00
Iain Clarke, Warrior Programmer20-Feb-09 4:00 
GeneralRe: C CODE HELP!!! (PROPERLY FORMATTED!!!!!) Pin
lincoding20-Feb-09 4:51
lincoding20-Feb-09 4:51 
GeneralRe: C CODE HELP!!! (PROPERLY FORMATTED!!!!!) Pin
Iain Clarke, Warrior Programmer20-Feb-09 5:10
Iain Clarke, Warrior Programmer20-Feb-09 5:10 
GeneralRe: C CODE HELP!!! (PROPERLY FORMATTED!!!!!) Pin
Luc Pattyn20-Feb-09 5:19
sitebuilderLuc Pattyn20-Feb-09 5:19 
GeneralRe: C CODE HELP!!! (PROPERLY FORMATTED!!!!!) Pin
CPallini20-Feb-09 6:22
mveCPallini20-Feb-09 6:22 
QuestionRe: C CODE HELP!!! Pin
David Crow20-Feb-09 5:17
David Crow20-Feb-09 5:17 
AnswerRe: C CODE HELP!!! Pin
Jonathan Davies20-Feb-09 5:33
Jonathan Davies20-Feb-09 5:33 
Try using else after your if's - if (sorry) it doesn't do the 'if' it will then perform the 'else' and you can put in a line to print out 'ans' to the screen to see what it really is.

One little thing, Users are a bit odd, if you ask them to type 'Y' upper case, then test for 'y' lower case you might find they didn't do what you expect (they never do).

You could test for if(ans == 'y' || and == 'Y') just in case.
AnswerRe: C CODE HELP!!! Pin
Code-o-mat20-Feb-09 5:56
Code-o-mat20-Feb-09 5:56 
QuestionDialog box is looks like hang. [modified] Pin
Le@rner20-Feb-09 1:52
Le@rner20-Feb-09 1:52 
AnswerRe: Dialog box is looks like hang. Pin
CPallini20-Feb-09 2:01
mveCPallini20-Feb-09 2:01 
GeneralRe: Dialog box is looks like hang. Pin
Le@rner20-Feb-09 17:57
Le@rner20-Feb-09 17:57 
GeneralRe: Dialog box is looks like hang. Pin
CPallini21-Feb-09 5:31
mveCPallini21-Feb-09 5:31 
Questiona qustion Pin
Archy_Yu20-Feb-09 1:11
Archy_Yu20-Feb-09 1:11 
AnswerRe: a qustion Pin
Nishad S20-Feb-09 1:43
Nishad S20-Feb-09 1:43 
GeneralRe: a qustion Pin
CPallini20-Feb-09 1:47
mveCPallini20-Feb-09 1:47 
GeneralRe: a qustion Pin
Nishad S20-Feb-09 2:05
Nishad S20-Feb-09 2:05 
GeneralRe: a qustion Pin
Archy_Yu20-Feb-09 13:05
Archy_Yu20-Feb-09 13:05 
GeneralRe: a qustion Pin
Nishad S20-Feb-09 18:21
Nishad S20-Feb-09 18:21 
QuestionPure Functions.. Pin
dehseth20-Feb-09 0:59
dehseth20-Feb-09 0:59 
AnswerRe: Pure Functions.. Pin
«_Superman_»20-Feb-09 1:10
professional«_Superman_»20-Feb-09 1:10 
GeneralRe: Pure Functions.. Pin
dehseth20-Feb-09 2:03
dehseth20-Feb-09 2:03 
AnswerRe: Pure Functions.. Pin
David Crow20-Feb-09 2:57
David Crow20-Feb-09 2:57 
QuestionProblem while horizontal scrolling Pin
Deepu Antony20-Feb-09 0:43
Deepu Antony20-Feb-09 0:43 
AnswerRe: Problem while horizontal scrolling Pin
Nishad S20-Feb-09 2:01
Nishad S20-Feb-09 2:01 

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.