我不知道我是否已經安裝了cygwin
錯誤或什麼,但代碼編譯罰款,但它並沒有顯示輸出。這裏是我的代碼:當我使用我的代碼的C++字符串,它編譯,但我不顯示輸出
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char *argv[])
{
string name;
cout << "Enter the name of the person" << endl;
getline(cin, name);
cout << "Name is: " << name << endl;
return 0;
}
這裏的編輯圖像和執行:
這個代碼看起來很好,那麼這裏完美的作品:http://cpp.sh/ –
我甚至不會花時間在點擊該鏈接;請以文本形式顯示編譯器調用和輸出。 –
看看'cat Main.cpp'確保你正在編譯你正在編輯的文件。還要確保你已經保存。我已經失去了多少次我犯了這兩個錯誤。 – molbdnilo