Example2_9B - << endl; cout <<...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> # using namespace std; u int main() { int x = 15; int y = 23; double z = 3.75; cout << "static_cast<int>(7.9 + 6.7) = " << static_cast<int>(7.9 + 6.7) << endl; cout << "static_cast<int>(7.9) + static_cast<int>(6.7) = " << static_cast<int>(7.9) + static_cast<int>(6.7)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: << endl; cout << "static_cast<double>(y / x) + z = " << static_cast<double>(y / x) + z << endl; cout << "static_cast<double>(y) / x + z = " << static_cast<double>(y) / x + z << endl; return 0; }...
View Full Document

This note was uploaded on 03/08/2011 for the course CSIT 139 taught by Professor Duzut during the Spring '11 term at Los Angeles City College.

Ask a homework question - tutors are online