954,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Two errors ( C2447,C2143 )

#include
using namespace std;
int main()
{ int BSR;
int HighBSR=0 , LowBSR=0 , NormalBSR=0;
int patients=0,sum =0;
int count=0;
cin>>patients;
while(patients != -1)}{{
{if
( BSR ==120 )//HighBSR+=patients;
}
{ else if ( BSR>70 && BSR<120 )//NormalBSR+=patients;
else ( BSR<=70 )//LowBSR+=patients;}
; count++;
cin>>patients;}}
cout<<"The Number Of All Patients is:"<

Devil night
Newbie Poster
1 post since Jun 2011
Reputation Points: 10
Solved Threads: 0
 

You have a close curly brace after your while statement that shouldn't be there. Please re post your code with code tags to make it easier to read. Also you might want to look up proper indenting and code formatting styles.

NathanOliver
Veteran Poster
1,084 posts since Apr 2009
Reputation Points: 215
Solved Threads: 189
 
while(patients != -1)}{{

That line.

pseudorandom21
Practically a Posting Shark
890 posts since Jan 2011
Reputation Points: 216
Solved Threads: 111
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: