help on c++

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

kknla

Thread Starter
Joined
Jan 19, 2001
Messages
257
Everything is compiling fine, but something is wrong. After is asks the user if he wants to enter a tip, it runs through the rest of the program and terminates. If you have the time, would you mind taking a look. Thanks, Barret. You have to download the text file to view it correctly.
 

Attachments

kknla

Thread Starter
Joined
Jan 19, 2001
Messages
257
I know that it is skipping the first "if" statement in the getTip function, and going straight to the "else". I'm just not seeing why.
 
Joined
Mar 18, 2001
Messages
1,741
Your "user_answer" should be a "char" not a "float"
since you want a Y/y or N/n... :)
 

kknla

Thread Starter
Joined
Jan 19, 2001
Messages
257
I have to kick myself for that one too. It was a float at one time, but I changed it, and did not change float to char. Thanks again, Barret
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top