testProg - //Line 4 testClass five(0, 0, 3.4, 'D'); //Line...

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

View Full Document Right Arrow Icon
//Test program for constructor with default values / #include <iostream> #include "testClassConstDefaultValues.h" # using namespace std; u int main() { testClass one; //Line 1 testClass two(5, 0, 6.0); //Line 2 testClass three(5, 7, 4.5); //Line 3 testClass four(4, 9, 12);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //Line 4 testClass five(0, 0, 3.4, 'D'); //Line 5 one.print(); //Line 6; Output one two.print(); //Line 7; output two three.print(); //Line 8; output three four.print(); //Line 9; output four five.print(); //Line 10; output five 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