我的問題很簡單。我在C++程序中有一個'for'語句,當我編譯時忽略了我的cout。非常簡單的C++語句,但它不會cout?
我使用的Xcode,在Xcode編譯和這裏是我的代碼:
#include <iostream>
using namespace std;
int main()
{
cout << this prints" << endl;
for(int i=0; i>10; i++)
{
cout << "this doesn't" << endl;
}
return 0;
}
問題是什麼?