Also, you might consider using the lines :
if(option <= 10 && option >= 1)
cout<<"The score is "<<judge<<endl;
else
cout<<"Invalid Entry.";
instead of the entire switch...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: parikshit6321 Search: Search took 0.03 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |