最赞回答 / CashQQJ
setX(x),setY(y)改成m_iX(x), m_iY(y)Coordinate是一个没有无参构造函数的类,实例化Coordinate类必须传入参数才行,所以在Line里初始化Coordinate时必须要使用初始化列表
2018-05-13
64位和32位的输出为啥是一样的啊??
64bit 的机器输出的sizeof(p)=8, sizeof(Line)=16;
64bit 的机器输出的sizeof(p)=8, sizeof(Line)=16;
2018-05-04
最新回答 / ihavebeen
第一:你的电脑是64位,但是你用的软件编译器里面设置的是win32,就是32位。这和你电脑是多少位没关系。<...图片...>第二:就算你用的是win64,64位的编译环境去做,也就那几个特别的数据类...
2018-05-04
哪里错了哟
Undefined symbols for architecture x86_64:
"Coordinate::Coordinate()", referenced from:
_main in demo-ce037c.o
"Coordinate::~Coordinate()", referenced from:
_main in demo-ce037c.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Undefined symbols for architecture x86_64:
"Coordinate::Coordinate()", referenced from:
_main in demo-ce037c.o
"Coordinate::~Coordinate()", referenced from:
_main in demo-ce037c.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2018-04-25