|
-
April 4th, 2009, 07:56 PM
#1
inputting a fraction in the form x/y
I want the user to be able to input a fraction in the form "x/y" where x and y are ints and then store the x as a variable numerator and y as a variable denominator. Iv been trying to use cin.gets and ignores but i cant figure this out. I know its probly easy. Thanks for any help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|