0
如何在MFC中聲明一個標準構造函數,該構造函數需要CPoint參數,例如在MFC中具有CPoint參數的標準構造函數
class CObj {
public:
CObj(CPoint pt = ???, float x = 10.0f, int n = 10);
...
我試圖
CObj(CPoint pt = (10,10), float x = 10.0f, int n = 10);
它編譯就好了,但只得到了pt.x值10,同時pt.y成了0
感謝,RS
不,不。與我的方法相同的結果:pt.x是10,但pt.y是0 – chessweb 2010-06-29 21:34:38