2016-04-03 80 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

相关问题