![]() |
|
#1
|
||||
|
||||
Can't figure out errorsRunning the below code through two compilers (CodeWarrior on XP and Anjuta on Debian) I get errors on the last few lines, specifically:
CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
__________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#2
|
||||
|
||||
|
Hi crystalattice. Where is the matching if statement for this else?
CPP / C++ / C Code:
If it is this one: CPP / C++ / C Code:
__________________
The best damn Sports Blog period. |
|
#3
|
||||
|
||||
|
Thanks for the help. I didn't notice it before; it does work now. However, I have developed a new question. If I leave the code as is, apart from adding the necessary braces, I get the message "Ensure only numbers are entered." every time, regardless if I enter only numbers. If I comment that line out, obviously it works great. How do I get the if statement regarding numbers only to work properly w/o screwing up the rest? I tried rearranging the braces but it just gives compile errors. Would it just be easier to get rid of that if statement and use the generic "invalid number"?
__________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#4
|
||||
|
||||
|
Quote:
CPP / C++ / C Code:
__________________
Age is unimportant -- except in cheese |
Recent GIDBlog
Writing a book by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| there are some errors but where?? | small_ticket | C Programming Language | 6 | 18-May-2004 13:10 |
| Error C2143: syntax error : missing ';' before 'type' | small_ticket | C Programming Language | 6 | 15-May-2004 11:59 |
| Can somebody look at this and point out any errors to me | soulfly | C Programming Language | 7 | 31-Mar-2004 09:45 |
| Rambus 128mb Pc800 memory errors | momo | Computer Hardware Forum | 1 | 11-Mar-2004 04:22 |
| PHP Compilation errors! | Allowee | MySQL / PHP Forum | 17 | 21-May-2003 11:19 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The