我不知道我在做什麼錯誤!C++「沒有這樣的文件或目錄」,請。我有包含的標題! (C++ Primer)
我已經定義的頭文件:項目 - >構建選項 - >搜索directories->反編譯>補充說明我的頭文件所在的路徑...
我使用的代碼塊。
我不知道什麼是錯的!
#include <iostream>
#include "Sales_item.h"
using namespace std;
int main()
{
Sales_item book; // Reads ISBN, number of copies sold and sales price
cin >> book; // Write ISBN, number of copies sold, total revenue, and avg. price
cout << book << endl;
return 0;
}
複製你的問題從選項卡«構建輸出»充分調用編譯器。它就像'g ++ main.cpp ...',*(下面你還會看到構建錯誤)*。 –