看板 NTUEE107HW 關於我們 聯絡資訊
我把課文照打進去… dev C 通過…但是microsoft visual c++ 卻說有syntax error #include <iostream> class Array{ friend ostream &operator<<(ostream &, const Array &); }; int main() { return 0; } microsoft visual c++的第一個error是這樣說的: error C2143: syntax error : missing ';' before '&' 不知道出了什麼問題…請指點迷津 >__< -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.250.106
AntaresStar:少了 using std::ostream 推 219.91.109.236 12/20
ugtony:原來是我錯了…感謝! 推140.112.250.106 12/21
karate362:我都打using namespace std;就一切ok了... 推 140.112.18.123 12/22