奇怪的bug
#include "coordinate.hpp"
#include <iostream>
using namespace std;
Coordinate::Coordinate()
{
? ? cout<< "this construct of Coordinate" <<endl;
}
Coordinate::~Coordinate()
{
? ? cout<< "this destruct of Coordinate" <<endl;
}
void Coordinate::setX(int x)
{
? ? m_intX = x;
}
在寫setX方法時,ide xcode報錯:expected ';' after top level declaration.
網上搜了各種解決方法都無效。還請老師釋疑。
2016-12-19
setX(int x)前括號像是中文字符