空中射击 [英] missile shoot in mid air

查看:57
本文介绍了空中射击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须使用C ++中的OOP制作导弹发射系统,这是我们本学期的最后一个项目.这是方案:
我们在距敌人特定距离处有一个导弹发射基地.敌人将发射我们知道其速度,角度和射程的导弹.我们必须以击中敌人的方式射击导弹在半空中我该怎么办?我的意思是说,有太多的可能性,例如时间通信.我应该怎么办?
这是我已添加到此程序中的功能:
1_用户将输入导弹的初始速度,程序将计算击中敌方基地所需的角度,反之亦然.
2_用户将输入导弹的角度和速度,程序将告诉他的导弹是否会击中敌方基地.
我认为这太简单了,请您也可以给我一些更多功能的想法.我们还没有学过图形,所以请不要提出这些建议.

i have to make a missile launch system using OOP in C++ as our semester final project.here''s the scenario:
we have a missile launch base at a specific distance from our enemy''s.the enemy will shoot a missile whose velocity,angle and range we know.We have to shoot our missile in such a way that it hits the enemy''s in mid-air.how do I do that?i mean there are so many possibilities,e.g time correspondence.what should i do?
here are the features that i have added to this program:
1_the user will enter initial velocity of his missile and the program will calculate the angle required to hit the enemy base-and vice versa.
2_the user will enter the angle and velocity of the missile and the program will tell if his missile will hit the enemy base or not.
I think it is too simple,can you please also give me some ideas for more features.we havnt yet learned graphics,so kindly plz dont suggest those.

推荐答案

您例如可以增加风速和风向,摩擦和空气阻力因素,不同尺寸和形式的导弹及其对空气阻力的影响.或添加其他类型的导弹,例如集束弹药.
整个事情有多严重?如果不是太多,则添加一群鸟,让它们在导弹或某些飞机的区域中随机飞行,或者用随机的闪电或超人在雷雨中飞行...
有很多可能性,只要坐下来考虑一下,我敢肯定,您会想到一些很酷或有趣的东西.祝你好运. :-)
You could for example add windspeed and wind direction, factor in friction and air resistance, different sizes and forms of missiles and their effect on air resistance. Or add different kind of missiles, e.g. cluster munition.
How serious is the whole thing? If not too much, add a flock of birds and let them fly randomly in the patch of the missiles or some plane, or thunderstorm with random lightning or Superman...
There are so many possibilities, just sit down and think about it and I am sure, you will come up with something cool or interesting. Best of luck. :-)


这篇关于空中射击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆