小程序
Depthslowly
好好经营自己的小空间
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
学生管理系统
#include <iostream> #include<windows.h> using namespace std; int main() { HANDLE hOut; hOut = GetStdHandle(STD_OUTPUT_HANDLE);//设置\t是白色的,而不是黄色的 SetConsoleTextAttribute(hOut,BACKGROUND_BLUE |BACKGROUND_RED | BACKGROUN原创 2016-10-10 22:03:31 · 806 阅读 · 0 评论 -
数字迷宫
数字迷宫 第一部分 案例描述 案例目的 本案例为实现动态的刷新Dos界面,使用用户控制头像“消灭”窗口中出现的数字(无固定顺序)的游戏,来使学员加深对一维数组、二维数组、循环语句、选择程序设计以及相关系统函数的使用。 案例难度 ★★★★ 案例覆盖技能点 a) 选择程序设计 b) 循环程序设计 c) 用户、屏幕窗口的输入输出 d) 相关系统函数 e) 一维、二维数组 推荐案原创 2016-10-10 23:28:18 · 2568 阅读 · 0 评论 -
生日快乐
#include #include #include #include #define N 100//产生随即颜色 extern char s_1[]= {"☆"}; extern char s_2[]= {"☆"}; extern char s_3[]= {"☆"}; extern char s_4[]= {"☆"}; extern char s_5[]= {"☆"}; extern char转载 2016-10-11 21:04:03 · 879 阅读 · 0 评论 -
获取系统时间
个人觉得第二种还是比较实用的,而且也是最常用的~ 不过当计算算法耗时的时候,不要忘记second,不能只要用Milliseconds来减,不然后出现负值,若是算法耗时太长就得用minutes啦。再不然,就hours…… //方案— 优点:仅使用C标准库;缺点:只能精确到秒级 #include #include int main( void ) { time_t t原创 2016-12-09 21:29:42 · 374 阅读 · 0 评论 -
定时关机
#include #include #include using namespace std; int main() { SYSTEMTIME sys; GetLocalTime( &sys ); int h=sys.wHour; int m=sys.wMinute; int s=sys.wSecond; int H,M,S; cin>>H>原创 2016-12-10 13:40:42 · 330 阅读 · 0 评论 -
文件操作
#include #include #include using namespace std; string a,b; void showmain() { cout<<"用户管理系统"<<endl; cout<<"1.用户注册"<<endl; cout<<"2.用户登录"<<endl; cout<<"0.退出"<<endl; } void Register() {原创 2016-12-10 12:42:48 · 353 阅读 · 0 评论
分享