自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (6)
  • 收藏
  • 关注

原创 ACII码表

十进制代码 十六进制代码 MCS 字符或缩写 DEC 多国字符名 ASCII 控制字符1 0 0 NUL 空字符 1 1 SOH 标题起始 (Ctrl/A) 2 2 STX ...

2021-08-24 11:21:06 2064 1

原创 c++猜数小游戏

(欢迎各位大佬指导!)#include<bits/stdc++.h>using namespace std;int main(){ srand((int)time(0)); int n; int t; cout<<"随机产生了一个1~100的整数,你来猜猜看这个数是几"<<endl; n=1+rand()%100;//产生1~100的随机数 //cout<<n<<endl; int i=1; cout<&

2021-08-22 12:25:03 142

原创 c++技能大作战小游戏

(此作品是作者写了很长时间才完成的,如有bug,欢迎在评论区告诉作者哦 \(^o^)/~ )可存档版://技能大乱斗v1.4.5飞来横祸#include<bits/stdc++.h>#include<windows.h>#include<conio.h>using namespace std;long long q,p,m,ji[10001]={0},dji[10001]={0},hp=1000,dhp=1000,pg=100,dpg=100,pw,.

2021-08-11 08:14:46 557 2

原创 c++如何生成随机数

使用rand()函数头文件#include<stdlib.h>(1) 如果你只要产生随机数而不需要设定范围的话,你只要用rand()就可以了:rand()会返回一随机数值, 范围在0至RAND_MAX 间。RAND_MAX定义在stdlib.h, 其值为2147483647。(2) 如果你要随机生成一个在一定范围的数,你可以在宏定义中定义一个random(int number)函数,然后在main()里面直接调用random()函数x = rand()%11; //产生...

2021-08-10 13:26:18 10351 1

原创 c++木马病毒

#include <iostream>#include<windows.h>#include<ctime>#include <cstdlib># include <stdio.h>#include <string.h>#include <fstream>using namespace std;int main (int argc,char *argv[]){ char copy[80]; sprint.

2021-08-10 13:14:28 973 2

原创 c++实现电脑关机(附源码)

大家还在用原始的关机方法吗?教你一招,使你关机也变得高大上!!!(别忘了点赞关注哦)#include<stdio.h>#include<windows.h>int main() {HANDLE hToken;TOKEN_PRIVILEGES tkp;OSVERSIONINFO osvi;osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);if (GetVersionEx(&osvi) == 0)ret..

2021-08-10 12:45:12 995 1

转载 c++坦克大战小游戏

注:(可能与其他小游戏代码相似,但是为作者原创,欢迎点赞催更)#include <stdio.h>#include <windows.h>#include <time.h>//里规格:长39*2=78 (真坐标)(假坐标宽为39) 高39//外规格:长41*2=82 (真坐标)(假坐标宽为41) 高41#define UP 1#define DOWN 2#define LEFT 3#define RIGHT 4#define MAX_LEVEL 8

2021-08-07 13:56:21 495 2

原创 c++小游戏

#include<bits/stdc++.h>#include<windows.h>#include<conio.h>#include<string>#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)using namespace std;int game[60][188];bool jia_flag = false; //当前是否需要加高.

2021-08-07 13:40:36 356 1

原创 c++实现剧情小游戏:哈利波特

(此为作者原创,转载请告知//游戏新增://自己看//BUG修复://战斗BUG//一样,代码5000多行,比龙的传人好一些...#include <iostream>#include <string>#include <windows.h>#include <conio.h>#include <fstream>#include <ctime>#include <time.h>#include

2021-08-07 13:38:42 2671 9

原创 c++编程实现狼人杀(不喜勿喷)

#include<bits/stdc++.h>#include<cstdio>#include<cstdlib>#include<ctime>#include<windows.h>using namespace std;struct IDname{ int geshu; string NAME;};IDname jue_se[100];struct ID{ int num; bool life; string na.

2021-08-07 13:05:45 3489 7

原创 c++实现三国杀小游戏

注:(代码转载请告知原作者)#include<iostream>#include<time.h>#include<stdio.h>#include <stdlib.h>using namespace std;struct pai{ int paifu; int huase; int yanse; int dianshu; int leixing; int changdu; void Kanpai() { if (paifu

2021-08-07 12:06:40 678 1

原创 火柴人跑酷c++(附源码)

注:(代码转载于其他作者,不喜勿喷)#include<bits/stdc++.h> #include<windows.h>#include<stdio.h>#include<conio.h>#include<time.h>#define Nor if(B[b].x<5) B[b].x=5;#define Out1 Bx1-Bvx1<=6||Bx1-Bvx1>=28||By1-Bvy1<=7||By1-B

2021-08-07 12:02:06 5319 4

猜数游戏c++超好玩 (源码)无BUG

猜数游戏c++超好玩 (源码)无BUG

2021-08-22

C++剧情小游戏:征服世界

C++剧情小游戏:征服世界

2021-08-11

文章生成器c++实现 超有意思

文章生成器c++实现 超有意思

2021-08-11

c++2048小游戏源代码

c++2048小游戏源代码

2021-08-11

枪械大战c语言小游戏超好玩

枪械大战c语言小游戏超好玩

2021-08-11

c++超好玩的剧情小游戏:密室逃脱

c++超好玩的剧情小游戏:密室逃脱

2021-08-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除