- 博客(78)
- 资源 (4)
- 收藏
- 关注
原创 小镇游戏C佳佳
#include<iostream>#include<windows.h>#include<conio.h>#include<unistd.h>#include<cstdlib>#include<time.h>#include<cmath> #include<fstream>#include<bits/stdc++.h>#include<cstdio>#include.
2022-06-29 11:37:04 1554 2
原创 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 1212
原创 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 1495
原创 运行错误哪位大什帮我一下C++
GetCurrentConsoleFont(hOutput, FALSE, &consoleCurrentFont);
2022-04-09 20:15:03 679
原创 抄写的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 683
原创 设置字体及大小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 4271
原创 最大化计算机窗口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 193
原创 有趣C++生存游戏
#include #include using namespace std; int choice; int a=0,b=0,c=0,d=0; int user_input; void S(int Color) { HANDLE hCon=GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(hCon,Color); } void wait() { Sleep(100); user_input=getchar(); } void cls() ...
2022-03-13 23:22:35 710 5
原创 搞人程序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 4249 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 190
原创 教程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
原创 游戏开始设置(2.0及3.0)
加了许多哦,重要的是增加了密码哦~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~正题开始!!#inclu
2022-03-12 17:09:28 5711
原创 怎样修改exe可执行文件名
SetConsoleTitle("凑字数凑字数凑字数凑凑凑凑凑凑字数凑字数凑字数凑字数字数凑字数凑字数凑字数字数凑字数凑字数凑字数字数凑字数凑字数凑字数字数凑字数凑字数凑字数字数");凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字.
2022-03-12 16:50:01 1190
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人