摘要:感谢任奕晟同学提供 #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
|
||
随笔分类 - 自编小程序/动画(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
摘要: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
摘要:#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
摘要:流水灯效果一 #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
|
||