当前位置: 动力学知识库 > 问答 > 编程问答 >

c++ - Uninitialized local variable 'intial verlocy' used

问题描述:

It doesn't let me calculate for the information that I put in it.

cout << "intial height:" << endl;

cin >> height;

//distance to structure

cout << "distance" << endl;

cin >> d;

initVy = Vi * sin(angle);

initVx = Vi * cos(angle);

cout << " Your Red Bird reached structure in s " << endl;

cin >> t;

t = d / initVx;

Vfx = initVx;

Vfy = initVy* a * t;

cout << " and was traveling at a velocity of m/s" << endl;

cin >> Vf;

Vf = sqrt(pow(Vfx, 2) + pow(Vfy, 2))

分享给朋友:
您可能感兴趣的文章:
随机阅读: