Joined
Last Seen
-3 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #55.0K
2 Posted Topics
Re: I just wrote this for my class: [ICODE] //written by Ben Hinrichs 2009 #include <iostream.h> class RationalNumber { public: RationalNumber() { doTheMath(); } void doTheMath() { cout << "Enter an int: "; cin >> a; cout << "Enter a denominator: "; cin >> b; if (b <= 0) cout << … | |
So I would like to know if there's any way to do the following more efficiently: [CODE]while(g[0] = 0 || g[0] = 1 || g[0] = 2 || g[0] = 3 || g[0] = 4 || g[0] = 5 || g[0] = 6 || g[0] = 7 || g[0] = … |
The End.