和視頻打的一模一樣為什么會(huì)彈出這樣的問(wèn)題??
>d:\c++學(xué)習(xí)\consoleapplication13\consoleapplication13\coordinate.h(3): error C2011: “Coordinate”:“class”類型重定義
1>d:\c++學(xué)習(xí)\consoleapplication13\consoleapplication13\coordinate.h(2): note: 參見“Coordinate”的聲明
1>已完成生成項(xiàng)目“ConsoleApplication13.vcxproj”的操作 - 失敗。
2019-04-03
我知道了,在主程序中多加了個(gè)"Coordinate.h"頭文件,,??!,,c++語(yǔ)音這么嚴(yán)格的嗎?多加頭文件都不行?
必須用多少就加多少??