![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
文章平均质量分 57
且秉烛
这个作者很懒,什么都没留下…
展开
-
C++整蛊小程序(生成.txt文件)需要fstream头文件 字符串拼接
#include<iostream> #include<fstream> #include<string> #include<windows.h> using namespace std; ofstream shuchu; int n1 = 123456; char st1[16] = {0}; char* str1 = "warning"; char in2[] = ".txt"; char out[20]; int size=100; void .原创 2021-07-30 23:09:22 · 513 阅读 · 1 评论 -
使用C/C++实现的贪吃蛇小游戏
#include <stdio.h> #include <conio.h> #include <windows.h> #include <stdlib.h> #include <iostream> #include <time.h> using namespace std; COORD zuobiao; //实例化 void position(int xx,int yy); //所有函数先行声名,以保证它们之间能互相调用; voi.原创 2021-07-30 22:12:32 · 212 阅读 · 1 评论