11-CoutTiming - data = 12.1 cout<< mutate(data...

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 << mutate(data); cout << subtract(data); cout << mutate(data); cout << endl; // cout << print(); // void is not handled by << return 0; } /* mutate subtract mutate 000 mutate 0subtract 0mutate Press any key to continue . . . */...
View Full Document

This note was uploaded on 10/05/2011 for the course CS 37 taught by Professor Glenncuevas during the Summer '09 term at Irvine Valley College.

Ask a homework question - tutors are online