February 18th, 2014, 01:19 AM
Also I suggest that you do a bit more research on recursion. The more you study about it, the more you understand how easy it is ( equivalent to writing a simple formula ). The reason I'm saying this...
February 17th, 2014, 02:10 AM
Apart from all the rest mentioned above....to end the program you could use getch() function.
P.S. You will have to include the conio.h header file.
Hope I could help...:)
February 17th, 2014, 02:01 AM
A pointer can only store the address of the partilcular variable location.
It cannot store the content.
Hope i could help...:)
February 17th, 2014, 01:59 AM
Actually casting is done by adding the data type in paranthesis before the variable you want to type cast such as (float)var.
What you are doing (15.0f/2) is again a float but according to the...
February 15th, 2014, 05:04 PM
Also, you might consider using the lines :
if(option <= 10 && option >= 1)
cout<<"The score is "<<judge<<endl;
instead of the entire switch...