编程学习笔记 归档 - 第6页 共7页 - Ericnth的小站

Hello, 欢迎登录 or 注册!

自创弹窗程序:(解药:先在任务栏中关闭exe文件,再右键所有运行弹窗关闭) #include<windows.h> using namespace std; int main() { system("color F5"); for(;;) system("start cmd"); ...

发布 0 条评论 Zhang, Xuheng

传说中的飞鼠程序:(解药:按alt+f4) #include<windows.h> #include<ctime> using namespace std; int main() { int x=GetSystemMetrics(SM_CXSCREEN); int y=GetSystemMetrics(SM_CYSCREEN); srand(tim...

发布 0 条评论 Zhang, Xuheng

五子棋小游戏: #define _CRT_SECURE_NO_WARNINGS 1 #include <iostream> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> using namespace std; const int N =...

发布 0 条评论 Zhang, Xuheng

自创石头剪刀布游戏:(有一点点水。。。) #include <bits/stdc++.h> using namespace std; int main() { cout<<"1代表石头:2代表剪刀:3代表布:4代表结束游戏:"<<endl; cout<<"请出拳&q...

发布 0 条评论 Zhang, Xuheng

2048小游戏: #include <iostream> #include <windows.h> #include <ctime> using namespace std; int const ROW = 4; int const COL = 4; int game[ROW][COL] = {0}; //上下左右 int const UP =...

发布 0 条评论 Zhang, Xuheng

更新~ 自创迷宫小游戏: #include<cstdio> #include<windows.h> #include<conio.h> int map[10][10]={{1,1,1,1,3,1,1,1,1,1}, {1,0,0,0,0,0,0,1,1,1}, {1,0,0,1,...

发布 1 条评论 Zhang, Xuheng

自创枪战小游戏: #include<iostream> #include<cstdio> #include<windows.h> #include<conio.h> using namespace std; int SIZ = 20; HANDLE hout=GetStdHandle(STD_OUTPUT_HANDLE); COORD coord; HANDL...

发布 0 条评论 Zhang, Xuheng

自创(部分参考www.sciencep.com)扫雷游戏: #include<bits/stdc++.h> #include<windows.h> using namespace std; long long int c,dev,m,k,cnt,d,e,jie=10,z,abc,n,b[1000][1000],a[1000][1000]...

发布 0 条评论 Zhang, Xuheng

作者提醒:请注意,本文写作时间为 2020 年,作者经验尚不成熟,会含有非常多错误或主观的内容,本系列内容留作纪念,基本无参考价值。 这个程序有一个源代码,有一个头文件(完全可以放在cpp文件里,但是我就是要把它弄成头文件hhh...

发布 0 条评论 23 786

详细介绍了有关C++Fstream文件流与freopen文件重定向的内容,可能对一些参加信息奥赛的小伙伴们有帮助。

发布 0 条评论 Tianheng Ni

自创俄罗斯方块: #include <iostream> #include <windows.h> #include <vector> #include <mmsystem.h> #include<stdio.h> #pragma comment(lib, "winmm.lib") using namespace std; #...

发布 0 条评论 Zhang, Xuheng

自创贪吃蛇: #include <iostream> #include <windows.h> #include <conio.h> #include <time.h> #include <stdlib.h> using namespace std; const int N = 20; void Get_xy(int x,int y) { ...

发布 1 条评论 Zhang, Xuheng