看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: Win10, Linux, ...) Win Vista 編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出) Dev-C++ 5.11 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) 問題(Question): 要編譯時會出現如圖的狀況 http://imgur.com/a/Fqjtf CreateProcess:No such file or Directory 餵入的資料(Input): 預期的正確結果(Expected Output): 應該會產生一個可執行檔 錯誤結果(Wrong Output): C:\Users\Huang\Desktop\g++.exe [Error] CreateProcess: No such file or directory 程式碼(Code):(請善用置底文網頁, 記得排版) // function main begins program execution int main() { int x; // first integer to multiply int y; // second integer to multiply int z; // third integer to multiply int result; // the product of the three integers cout << "Enter three integers: "; // prompt user for data cin >> x >> y >> z; // read three integers from user result = x * y * z; // multiply the three integers; store result cout << "The product is " << result << endl; // print result; end line return 0; // indicate program executed successfully } // end function main 補充說明(Supplement): 我有在另一台電腦(Win 7)用同一個編譯器,沒有這問題。 但換了一台電腦(Win Vista)就出現這問題了。 程式碼是書中的範例,所以不可能有錯。 會是我作業系統的問題嗎? g++.exe這個檔是什麼呀? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.169.33.211 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1483792616.A.1AE.html
james732: 我覺得是你的dev-c++沒灌好 01/07 20:50
grayStone: vista... 01/07 20:53
asd456fgh778: Vista 配 Dev C++ 絕配 01/07 21:04
jack1218: vista dev 最強的兩個你都用了XD 01/08 11:54
bachelorwhc: 超強 01/09 00:27
BlazarArc: XDDD 01/09 10:11
TobyH4cker: 是5.11不是那個4.9.9.2 01/09 13:02