2016-04-03 30 views
0

我嘗試編譯此,其未完成的,但它應該仍然運行:只有1錯誤消息:1D返回1個退出狀態,C++

#include <iostream> 
using namespace std; 
int main() 
{ 
int hI = 1.5; 
int gc = 9.8; 
int Velocity; 
int Angle; 
cout << "Please enter the velocity of the ball at the release in m/s"; 
cin >> Velocity; 
cout << "Please enter the angle of the velocity vector at the time of release in degrees"; 
cin >> Angle; 
return 0; 
} 

我只得到一個錯誤消息,當我建立它:1D返回1退出狀態,爲什麼? 任何幫助謝謝

+0

編譯罰款(MSVC14,G ++ 5.3.0)。 –

+0

你使用什麼編譯器? – saeedgnu

回答

0

可能是因爲喜是int和UR分配一個浮動,同爲GC

+0

ahhh有道理謝謝! – katDouglas