Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   How to specify inputs using scanf in a particular format (http://www.go4expert.com/forums/specify-inputs-using-scanf-particular-t26146/)

adityamehta 27Jun2011 13:09

How to specify inputs using scanf in a particular format
 
Hi,

I want to make a program that accepts the radius of a circle and co-ordinates of the center.
I want the user to specify the inputs as:
radius:{(x,y)}

eg, if the radius is 4, and center is at 1,2, then user should specify it as:
4:{(1,2)}

How to do this in C?


All times are GMT +5.5. The time now is 19:58.