First page Back Continue Last page Graphics
Be sure to understand these automatic type conversions
What happens with:
- int computer(3.33);
- cout << computer << endl; // outputs 3
Gives a compiler warning!
Try to avoid trusting the compiler for anything like this! AVOID WARNINGS!
Type casts allow you to be a bit sloppy and correct it later. I believe that you should clean up your original code to avoid type casts!