教程
imX2G
I love c++ ,X2G!
展开
-
游戏开始界面C++实现3.0
又新了好几个东东原创 2022-03-26 10:02:28 · 1224 阅读 · 5 评论 -
随机数种子生成
【代码】随机数种子生成。原创 2023-12-28 20:54:27 · 370 阅读 · 0 评论 -
switch格式C++
大家可以尝试用switch替代多个if,代码如下格式。原创 2022-07-21 11:32:04 · 499 阅读 · 0 评论 -
coutAIO.h现已制作完成
我看了饼干的b_game.h感觉很棒,于是我爆肝写出了这个代码:原创 2022-07-13 09:23:49 · 100 阅读 · 0 评论 -
C++幕布代码(彩色)
??幕布原创 2022-07-01 18:34:21 · 1560 阅读 · 0 评论 -
使用海伦公式求三角形面积C++
好好学习!原创 2022-06-30 14:08:44 · 1800 阅读 · 3 评论 -
像素画第一篇C++
像素画原创 2022-06-29 11:41:53 · 436 阅读 · 0 评论 -
游戏模板C++(控制台)
祝您游戏愉快!原创 2022-06-29 11:34:41 · 217 阅读 · 0 评论 -
函数C++
一共有所有变量类型加一种函数。多出来的那一个是void函数类型。它们大概这样用:注释够多了,没必要我解释原创 2022-06-29 09:39:12 · 147 阅读 · 0 评论 -
gotoC++闲谈
无摘要原创 2022-06-12 09:44:45 · 104 阅读 · 0 评论 -
游戏开始界面C++3.1
增加亿点点原创 2022-06-08 12:30:09 · 1799 阅读 · 3 评论 -
移动书写位置练习C++
你学废了么?原创 2022-06-08 12:22:56 · 57 阅读 · 0 评论 -
C++输出爱心
💗#include<stdio.h>#include<Windows.h>int main() { float x, y, a; for (y = 1.5; y > -1.5; y -= 0.1) { for (x = -1.5; x < 1.5; x += 0.05) { a = x * x + y * y - 1; putchar(a * a * a - x * x * y * y * y <= 0.0 ? '*' : ' '原创 2022-05-29 17:36:38 · 1215 阅读 · 0 评论 -
C语言文件追加及写入及读取
简介被作者删除了原创 2022-05-21 10:03:47 · 5565 阅读 · 0 评论 -
C++一步解决cls闪烁问题
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);//定义显示器句柄变量,并且这个只能在每个头文件中单独定义句柄和函数,否则无效 void gotoxy(HANDLE hOut, int x, int y)//其中x,y是与正常理解相反的,注意区分 { COORD pos; pos.X = x; //横坐标 pos.Y = y; //纵坐标 ...原创 2022-04-18 21:43:35 · 1504 阅读 · 0 评论 -
抄写的C++常用函数
void ycgb()//隐藏光标 { CONSOLE_CURSOR_INFO cursor; cursor.bVisible = FALSE; cursor.dwSize = sizeof(cursor); HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleCursorInfo(handle, &cursor); return; } void ydgb(long long h, long long .原创 2022-04-08 18:16:47 · 684 阅读 · 0 评论 -
设置字体及大小C++
void SetFont(int size = 30) {//hello imX2G CONSOLE_FONT_INFOEX cfi; //hello imX2G cfi.cbSize = sizeof cfi; //hello imX2G cfi.nFont = 0; //hello imX2G cfi.dwFontSize.X = 0; //hello imX2G cfi.dwFontSize.Y = size; //设置字体大小 cfi.FontFamily = FF_DONTCARE.原创 2022-03-19 21:32:50 · 4293 阅读 · 0 评论 -
最大化计算机窗口C++
void full_screen(){ HWND hwnd = GetForegroundWindow(); int cx = GetSystemMetrics(SM_CXSCREEN); /* 屏幕宽度 像素 */ int cy = GetSystemMetrics(SM_CYSCREEN); /* 屏幕高度 像素 */ LONG l_WinStyle = GetWindowLong(hwnd,GWL_STYLE); .原创 2022-03-14 20:15:24 · 195 阅读 · 0 评论 -
搞人程序C++
(可以搞爱玩游戏还老欺负你的人你可以在他玩的正嗨的时候给他来一下!)#include<bits/stdc++.h>#include<conio.h>#include<windows.h>using namespace std;int main(){ while(1) { SetCursorPos(rand() % 10000,rand() % 10000); system("start cmd"); system("start calc")原创 2022-03-13 14:18:42 · 4250 阅读 · 3 评论 -
C++实现禁用叉号
方案一:void close(){ HWND hwnd = GetConsoleWindow(); HMENU hmenu = GetSystemMenu(hwnd, false); RemoveMenu(hmenu, SC_CLOSE, MF_BYCOMMAND); LONG style = GetWindowLong(hwnd, GWL_STYLE); style &= ~(WS_MINIMIZEBOX); SetWindowLong(hwnd, GWL_STYLE, st原创 2022-03-13 13:22:43 · 191 阅读 · 0 评论 -
教程5continue和break
一、break和continue的作用 break和continue都是用来控制循环结构的,主要作用是停止循环。二、break和continue的区别1、break用于跳出一个循环体或者完全结束一个循环,不仅可以结束其所在的循环,还可结束其外层循环。注意:(1)只能在循环体内和switch语句体内使用break。(2)不管是哪种循环,一旦在循环体中遇到break,系统将完全结束循环,开始执行循环之后的代码。(3)当break出现在循环体中的switch语句体内时,起作用只是跳出该sw.原创 2022-03-12 17:19:24 · 83 阅读 · 0 评论 -
游戏开始设置(2.0及3.0)
加了许多哦,重要的是增加了密码哦~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~正题开始!!#inclu原创 2022-03-12 17:09:28 · 5714 阅读 · 0 评论 -
怎样修改exe可执行文件名
SetConsoleTitle("凑字数凑字数凑字数凑凑凑凑凑凑字数凑字数凑字数凑字数字数凑字数凑字数凑字数字数凑字数凑字数凑字数字数凑字数凑字数凑字数字数凑字数凑字数凑字数字数");凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字.原创 2022-03-12 16:50:01 · 1194 阅读 · 0 评论 -
C++万字总结(转载)
1.C++头文件不必是以.h结尾,C语言中的标准库头文件math.h、stdio.h,在C++标准库头文件中被命名为cmath、cstdio.#include <cmath> #include <cstdio>int main(){ double a=1.2; a=sin(a); printf("%lf\n",a); return 0;} 2.C++除了C的多行注释,还可以使用单行注释(在 C99 标准中,单行注释正式加入C语言,但是大部分编译器在 C99.原创 2022-03-12 13:21:34 · 118 阅读 · 0 评论 -
防沉迷系统
int sfz(){ int a[18],i,n,b; printf("当前未进行认证\n"); printf("请输入身份证号:"); for(i=0;i<18;i++) scanf("%1d",&a[i]); n=a[6]*1000+a[7]*100+a[8]*10+a[9]; b=2022-n; if(b<18) return 0; else return.原创 2022-03-11 21:52:42 · 806 阅读 · 2 评论 -
弹窗恶搞C++
#include <iostream>#include <cstdlib>#include <windows.h> #include <tchar.h>using namespace std;#include<bits/stdc++.h>#include<windows.h>#include<conio.h>using namespace std;void color(int a)//打印颜色{.原创 2022-03-09 21:09:27 · 172 阅读 · 0 评论 -
超级玛丽C++游戏
超级玛丽转载 2022-02-20 14:33:30 · 4440 阅读 · 3 评论 -
游戏炫酷炫酷炫酷界面C++
炫酷炫酷炫酷!!!原创 2022-02-19 10:27:40 · 761 阅读 · 0 评论 -
颜色函数C++
/*SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),); 输出SetConsoleTextAttribute(GetStdHandle(STD_INPUT_HANDLE),); 输入FOREGROUND_BLUE 文字颜色包含蓝色FOREGROUND_GREEN 文字颜色包含绿色FOREGROUND_RED 文字颜色包含红色FOREGROUND_INTENSITY 文字颜色加强BACKGROUND_BLUE 背景颜色包含蓝.原创 2022-02-17 13:28:03 · 885 阅读 · 0 评论 -
花式打印C++
#include<bits/stdc++.h>#include<windows.h>#include<conio.h>using namespace std;void happyprint(long long a,char b[100000000]){ int i=0; while(a!=0){ if(a!=0) { SetConsoleTextAttribute(GetStdHandle(.原创 2022-02-17 00:35:18 · 162 阅读 · 0 评论 -
存档数据显示特效C++
特效,AIO是我原创 2022-02-15 16:00:21 · 151 阅读 · 0 评论 -
教程4For循环
请勿转载,如转载请注明出处原创 2022-02-15 11:36:34 · 174 阅读 · 0 评论 -
随机数C++
int a=rand%100+1;话不多说。原创 2022-02-13 22:04:38 · 237 阅读 · 0 评论 -
教程3if语句else
if语句是判断的,比如如果表达 如果a=0就说你好if(a==0){ cout<<“你好”<<endl;}这里没声明主函数什么的,真正运行靠教程1的框架。用法如下中文 表达式等于 ==不等于!=赋值(不用在if!) =大于或等于 >=小于或等于 <=大于 不用我说!小于 不用我说!如果要表达if不成立才执行的语句是什么呢?else,用法差不多if(a==0){ cout<<“你好.原创 2022-02-08 12:30:23 · 340 阅读 · 0 评论 -
教程2变量和常量
新手专用,变量常量原创 2022-02-06 17:27:23 · 500 阅读 · 0 评论 -
教程1输入输出
输入输出C++变量来客串原创 2022-02-05 16:24:26 · 375 阅读 · 0 评论