说明: 第1题 矩形类及期成员函数的实现 #include #include using namespace std ; class CPoint { int x; int y; public : CPoint (int ptX =0, int ptY =0): x (ptX ), y(ptY ) { } friend class CRectangle; }; <qq_45447676> 上传 | 大小:14kb
说明: c语言程序设计第十二章课后题答案,附加课后习题代码 Suppose that the following declarations are in effect: int a[] = {5, 15, 34, 54, 14, 2, 52, 72}; int *p = &a[1], *q = &a[5]; (a) What is the value of *(p + 3)? 14 (b) What is the value of *(q - 3)? 34 (c) What is the value <qq_45447676> 上传 | 大小:11kb