Try typing these lines into the beginning of your program and see what happens:
Code:for (int i = 0; i < 10; i++) cout << i/4 << endl; for (int i = 0; i < 10; i++) cout << i/4.0 << endl;
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 19
Thread: calculating discount percentsThreaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |