- 博客(3)
- 收藏
- 关注
原创 CodeCombat---一个不错的造币厂
# 苦工试图偷取金币# 编写一个语句阻止苦工拿到金币 def pickUpCoin(): coin = hero.findNearestItem() if coin: hero.moveXY(coin.pos.x, coin.pos.y) # 写一个 攻击程序 # 寻找附近的敌人如果出现敌人攻击他们 def attackEnemy(): enemy =
2017-12-27 12:21:27
735
原创 C++ Primer Plus 编程练习 3.7.5
#include int main() { long long world_p, usa_p; cout << "Enter the world's population: "; cin >> world_p; cout << "Enter the population of US: "; cin >> usa_p; cout << "The population of the US
2017-12-06 22:06:14
327
原创 C++ Primer Plus 编程练习 3.7.4
#include using namespace std; int main() { long day, hor, min, sec; int in1; cout cin >> in1; const int danwei = 60; const int hor_to_day = 24; sec = long(in1 % danwei); min = long(in1 /
2017-12-06 21:35:08
399
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人