会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
boyeyuan
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
···
13
下一页
2025年3月23日
输出1—10
摘要: #include <bits/stdc++.h> using namespace std; int fc(int s){ if(s==1){ return 1; }else{ cout<<s<<" "; return fc(s-1); } } int main(){ int n; cin>>n; c
阅读全文
posted @ 2025-03-23 09:27 昵称就是最好的昵称
阅读(5)
评论(0)
推荐(0)
2025年2月23日
3
摘要: #include <iostream> using namespace std; class Rectgangle{ private: int length; int width; public: void js(int l,int w){ length=l; width=w; } void sj(
阅读全文
posted @ 2025-02-23 09:58 昵称就是最好的昵称
阅读(13)
评论(0)
推荐(0)
2025年2月6日
11111
摘要: stu s1={1,”留有一“,111};cout<<s1.id<<endl;cout<<s1.name<<endl; for(int i=0;i<n;i++){ for(int j=n-1;j>0;j--){ if(a[i].cj<a[j].cj){ swap(a[i].age,a[j].age)
阅读全文
posted @ 2025-02-06 09:39 昵称就是最好的昵称
阅读(10)
评论(0)
推荐(0)
fffffff
摘要: #include <bits/stdc++.h> using namespace std; struct lile{ int age; string name; int cj; }; int main() { int n; cin>>n; lile a[n];lile a1; for(int i=0
阅读全文
posted @ 2025-02-06 09:35 昵称就是最好的昵称
阅读(12)
评论(0)
推荐(0)
2024年12月29日
梦幻西游2
摘要: #include <iostream> using namespace std; int readfile(string name){ FILE *file=fopen(name.c_str(),"r"); if(file==NULL){ perror("文件打开失败"); return 1; }
阅读全文
posted @ 2024-12-29 09:49 昵称就是最好的昵称
阅读(20)
评论(0)
推荐(0)
文道流
摘要: #include <iostream> #include <fstream> using namespace std; int main(){ // char data[100]; // ifstream a; // a.open("j.txt"); // a>>data; // cout<<dat
阅读全文
posted @ 2024-12-29 09:22 昵称就是最好的昵称
阅读(8)
评论(0)
推荐(0)
2024年12月27日
梦幻西游
摘要: #include <iostream> using namespace std; void dengluliuzi(){ printf("%s","恭喜你你出生你了\n"); printf("%s","你好不容易出生了。。你要??拯救之前失去的一切吗??\n"); printf("%s","\n")
阅读全文
posted @ 2024-12-27 19:24 昵称就是最好的昵称
阅读(13)
评论(0)
推荐(0)
2024年12月20日
文道流
摘要: #include <fstream> #include <cstdio> #include <iostream> using namespace std; struct wo{ string name; string sex; int age; int cm; int kiko; }; int ma
阅读全文
posted @ 2024-12-20 19:12 昵称就是最好的昵称
阅读(10)
评论(0)
推荐(0)
2024年12月8日
struct结构体项目1
摘要: //三个教室 //每个教室5个学生 //每个学生包含 姓名 年龄 成绩 //1.求一个教室内学生总成绩 //2.输出一个教室所有学生信息 //3.输出一个教室根据学生成绩排序后的所有信息 #include<iostream> using namespace std; struct Student{
阅读全文
posted @ 2024-12-08 09:54 昵称就是最好的昵称
阅读(12)
评论(0)
推荐(0)
结构体的使用 for循环使用方式 sort 使用
摘要: 1.创建结构体 成员变量 多个 成员函数 多个 其他结构体 多个 2.定义结构体变量 结构体名 变量名 3.调用 .成员访问符 for循环: for(1.初始条件;2.循环条件3.条件改变){ 4.表达式 } while: 1 while(2){ 4 3 } sort 使用 #include <bi
阅读全文
posted @ 2024-12-08 09:28 昵称就是最好的昵称
阅读(14)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
13
下一页
公告