i信息学奥赛

加入QQ群:1025629106,或关注微信公众号:i信息学奥赛,获取更多学习资源。

导航

随笔分类 -  自编小程序/动画(C++)

摘要:感谢任奕晟同学提供 #include<bits/stdc++.h>#include<windows.h>using namespace std;void gotoxy(int x,int y){ COORD c; c.X = x - 1; c.Y = y - 1; SetConsoleCursorP 阅读全文

posted @ 2018-05-09 15:51 shnoip 阅读(712) 评论(0) 推荐(0)

摘要:1、长度二节;2、如果触及屏幕边缘,游戏结束;感谢张瑞阳同学改进#include<bits/stdc++.h>#include<windows.h>#include<conio.h>using namespace std;void gotoxy(int x,int y){ COORD c; c.X 阅读全文

posted @ 2018-04-24 10:39 shnoip 阅读(785) 评论(0) 推荐(0)

摘要:#include<bits/stdc++.h>#include<windows.h>#include<conio.h>using namespace std;void gotoxy(int x,int y){ COORD c; c.X = x - 1; c.Y = y - 1; SetConsole 阅读全文

posted @ 2018-04-18 16:27 shnoip 阅读(731) 评论(0) 推荐(0)

摘要:流水灯效果一 #include<bits/stdc++.h>#include<windows.h>using namespace std;int r=12,g=10,t;char ch='O';void SetColor(unsigned short ForeColor=7,unsigned sho 阅读全文

posted @ 2018-04-12 08:14 shnoip 阅读(1295) 评论(0) 推荐(0)