Answers to Quiz 1
程式是錯的.解法有兩種.
pRect->top += 10;
std::cout << pRect->top;
(*pRect).top += 10;
std::cout << (*pRect).top;
程式是錯的.struct宣告結尾要加上分號.
struct ListElement
{
int value;
ListElement* pNext;
}
;
1
2
3