作者wudunglie2 (RAY)
看板C_and_CPP
标题[问题] C++ Class 的问题
时间Wed Apr 22 21:38:44 2009
我用的ADS1.2 c++ compiler
编译
class Test{
Private:
Public:
char i;
Protection:
Test();
~Test();
}
Test() // <===
{
i = 0;
}
~Test()
{
}
都会出现 Sys:stack 的错误
但是如果拿掉 Test() //<=== 这个就不会有错
这是啥原因阿
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.44.250.41
1F:→ iamivers0n:Test::Test(){....} ? 04/22 21:55
2F:→ adrianshum:超多错,一楼说那外个,还有 class declaration 後没有 04/23 01:42
3F:→ adrianshum:分号,public 等的大小草写错,protected 串错 04/23 01:42
4F:→ adrianshum: ^ 拼错 04/23 01:43