![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2008
Posts: 7
Rep Power: 0
![]() |
hey im writting a simple code for a school assignment and for the life of me i cant figure out whats wrong with it, here it is
c++ Syntax (Toggle Plain Text)
if anyone could help me it would be much appreciated Last edited by Ancient Dragon; Jan 31st, 2008 at 6:50 PM. Reason: add code tags |
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4
![]() |
Re: some help
is it not compiling?
the cin << r; should be cin>>r and /n should be \n |
|
|
|
|
|
#3 |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 630
Rep Power: 4
![]() |
Re: some help
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS! |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Dec 2007
Posts: 93
Rep Power: 1
![]() |
Re: some help
Quote: case 4: break;
The code will never evaluate to that, due to - "if(choice>=1 && choice<=3)" - only the cases 1, 2 and 3 will... Quote: else if (x!=4) What is x? Quote: #include <iomanip> What function/macro/etc are you using from this header? |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|