C++大学基础教程课后答案(DEITEL)版GradeBook类定义: #include
if( amount <= balance )quantity set to 0.\\n\}\
<<\}n\\n\
Rational division(constRational & );<< endl; break; case2:<< endl; break; case3:<< endl; break;
}Set Hour\\n2. Set Minute\\n3. Set Second\\n\<<\cin >> choice; returnchoice; }.......p3 . . .......p2
1 / 3
n\
point1 = Point( ,); point2 = Point( ,); point3 = Point( ,); point4 = Point( ,); } ength();
cout <<\rectangles[ i ].perimeter(); rectangles[ i ].area(); cout <<\
<< ( rectangles[ i ].square()\<<\}.......p3 . . .......p2 n\
point1 = Point( ,); point2 = Point( ,); point3 = Point( ,); point4 = Point( ,);
2 / 3
} ; ; TicTacToe::Status TicTacToe::gameStatus() { inta; n\returntrue; }// end else if else// CONTINUE returnfalse;
}// end function xoMove 测试函数:
#include\intmain() {
TicTacToe g;// creates object g of class TicTacToe ();// invokes function makeMove return0; }// end main
3 / 3