Posted by: wai_wai February 20, 2010
C++ problem
Login in to Rate this Post:     1       ?         Liked by
sajilo cha ta dude ke tension le rayako....i would have done it for you...but i don't know c++. I can provide you the hints...

Ans 1) 
1. read input and store runner Id and Name in key value pair using Dictionary or Hash
2. Do the input validation while reading the inputs
3. While printing find the first, second and third from dictionary/Hash and print it.

Ans 2)
1. Use Switch Statement to perform the respective mathematical operation
2. Do input validation or use regular expression to valid the input from 1 to 5. If input is out from that boundary just print the exception message. 

Last edited: 20-Feb-10 11:54 PM
Read Full Discussion Thread for this article