11-CoutTiming - data = 12.1; 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; { cout << "mutate" << endl; //data /= 3.0; //cout << data << endl; return 0; } { cout << "subtract" << endl; //data -= 5.5; //cout << data << endl; return 0; } void print() {} int main(void) { double data = 12.1; cout << mutate(data) << subtract(data) << mutate(data) << endl;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: data = 12.1; cout &lt;&lt; mutate(data); cout &lt;&lt; subtract(data); cout &lt;&lt; mutate(data); cout &lt;&lt; endl; // cout &lt;&lt; print(); // void is not handled by &lt;&lt; return 0; } /* mutate subtract mutate 000 mutate 0subtract 0mutate Press any key to continue . . . */...
View Full Document

Ask a homework question - tutors are online