By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,816 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,816 IT Pros & Developers. It's quick & easy.

rational numbers using structures

P: 21
I need some help on representing rational numbers using structures
Oct 25 '06 #1
Share this Question
Share on Google+
1 Reply


arne
Expert 100+
P: 315
I need some help on representing rational numbers using structures
In C, you mean? What about something simple like
Expand|Select|Wrap|Line Numbers
  1. structure rational {
  2.         int numerator;
  3.         int denominator;
  4. };
  5.  
Oct 25 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.