My Program runs but not correctly

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2005
Posts: 5
Reputation: ANRCCC is an unknown quantity at this point 
Solved Threads: 0
ANRCCC ANRCCC is offline Offline
Newbie Poster

My Program runs but not correctly

 
0
  #1
Feb 18th, 2005
I fixed my program from the previous complaint and I got it to run. Now my problem is that it won't run correctly. Can you help me?
Attached Files
File Type: cpp Cell Phone Bill homework due 2-18-05.cpp (2.9 KB, 8 views)
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 220
Reputation: frrossk is an unknown quantity at this point 
Solved Threads: 9
frrossk's Avatar
frrossk frrossk is offline Offline
Posting Whiz in Training

Re: My Program runs but not correctly

 
0
  #2
Feb 18th, 2005
1. Don't post twice the same question.
2. You should have posted the code (it's not so big)
3. Some errors (not compiler, but logical errors):
  1. if (plan == 'A')
  2. {
  3. BASE_PRICEA;
  4. }
What's this??
  1. else (plan == 'A' && weekday <= 250);
  2. {
  3. cout << "No weekday overages" << endl;
  4. }
I think you forgot an if:
  1. else if (plan == 'A' && weekday <= 250)
and, after if don't put a semicolon.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC