我正在使用applet编写Java游戏突破,我使用了一些showStatus("")行来说明applet的窗口。 但是当我开始一个新的游戏时,我希望状态文本消失。也就是说,当一个键被按下并且发生了一些动作时。如果按下向上箭头(键1004),则游戏开始,我希望状态文本消失。 我该如何做到这一点? 这是我的解决方案迄今: public boolean keyDown(Event e, int key)
我尝试编译此,其未完成的,但它应该仍然运行: #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