Forum: C++ Sep 29th, 2004 |
| Replies: 4 Views: 2,329 In your example print_results is the method. You then define an object of type Standard in order to be able to use this method on that object. |
Forum: C++ Sep 24th, 2004 |
| Replies: 6 Views: 4,112 Your right, I missed the int when working out how the loop works. Divide 1 by 2 in integer maths and you'd have to get either 1 or 0 returned depending on how the code is evaluated so it either... |
Forum: C++ Sep 23rd, 2004 |
| Replies: 6 Views: 4,112 That code isn't an infinite loop. It loops twice adding 1/2 each time round ending up with a total of 1.
The following would "in theory" be an infinite loop but in practice would terminate once... |