随笔- 75
文章- 0
评论- 2
阅读-
2522
12 2024 档案
梦幻西游 和 文件流版
摘要:#include <iostream> using namespace std; int main(int argc, char** argv) { system("title 梦幻西游启动"); printf("恭喜你 噩梦开始了\n"); system("pause"); printf("1.人
阅读全文
system
摘要:#include <iostream> using namespace std; system("pause") 可以实现冻结屏幕 system("CLS") 可以实现清屏操作 调用color函数可以改变控制台的前景色和背景,具体参数在下面说明。 例如,用 system("color 0A"); 其
阅读全文
文件流 结构体
摘要:#include <iostream> #include <cstdio> using namespace std; struct no{ string name; int age; string blc; int shengao; int tizhong; }; int main(int argc
阅读全文
结构体的使用 for循环使用方式 sort 使用
摘要:1.创建结构体 成员变量 多个 成员函数 多个 其他结构体 多个 2.定义结构体变量 结构体名 变量名 3.调用 .成员访问符 for循环: for(1.初始条件;2.循环条件3.条件改变){ 4.表达式 } while: 1 while(2){ 4 3 } sort 使用 #include <bi
阅读全文
struct 和 printf
摘要:/* 1 500 魔力奶茶 8 10 2 500 茉莉奶茶 8 10 3 500 磨砺奶茶 8 10 4 500 莫离奶茶 8 10 5 500 美丽奶茶 8 10 */ /* string 转 char 数组 c_str() printf 函数 %s 字符串 如果报错,加上 c_str()函数转换
阅读全文