亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

奇怪的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.

網上搜了各種解決方法都無效。還請老師釋疑。




正在回答

1 回答

setX(int x)前括號像是中文字符

0 回復 有任何疑惑可以回復我~
#1

桃心老k 提問者

非常感謝!
2016-12-19 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
C++遠征之封裝篇(下)
  • 參與學習       70902    人
  • 解答問題       534    個

封裝--面向對象三大特征之一,通過案例讓C++所學知識融會貫通

進入課程

奇怪的bug

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號