上一页 1 2 3 4 5 6 7 8 ··· 18 下一页
摘要: 1.win+R->cmd 2.ipconfig 3.Administrator 阅读全文
posted @ 2025-09-13 10:50 爱吃泡面的皮卡 阅读(12) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int s(int a){ if(a<2){ return 1; }else{ return s(a-1)+s(a-2); } } int main(){ int n; cin>>n; int a[n]; f 阅读全文
posted @ 2025-08-02 14:53 爱吃泡面的皮卡 阅读(8) 评论(0) 推荐(0)
摘要: 求两个自然数a和b的最大公约数(递归算法) #include <iostream> using namespace std; int dg(int a,int b){ if(a%b==0){ return b; }else{ return dg(b,a%b); } } int main(){ //这是递归 int a,b; cin>>a>>b 阅读全文
posted @ 2025-07-29 15:43 爱吃泡面的皮卡 阅读(4) 评论(0) 推荐(0)
摘要: 学生成绩(sort结构体) #include <bits/stdc++.h> using namespace std; struct Tom{ string name; int age; int score; }; bool score_1(const Tom &a,const Tom &b){ if(a.score==b.s 阅读全文
posted @ 2025-07-26 15:49 爱吃泡面的皮卡 阅读(8) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; bool www(string &a,string &b){ return a.size()<b.size(); } int main(){ vector <string> s={"asdasda","gga 阅读全文
posted @ 2025-07-26 15:18 爱吃泡面的皮卡 阅读(11) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main(){ vector <int> s={4,24,5,6,7,3,4}; sort(s.begin(),s.end()); cout<<"升序"; for(int i:s){ cout<<i< 阅读全文
posted @ 2025-07-26 14:58 爱吃泡面的皮卡 阅读(7) 评论(0) 推荐(0)
摘要: #include <graphics.h> #include <conio.h> #include <bits/stdc++.h> using namespace std; int main(){ srand(time(0)); initgraph(640, 480); int x1=0,x2=64 阅读全文
posted @ 2025-06-29 10:01 爱吃泡面的皮卡 阅读(11) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main(){ int n; cin>>n; int a[n],b[n+1]; for(int i=0;i<n;i++){ cin>>a[i]; b[a[i]]++; } for(int i=0;i<n;i++ 阅读全文
posted @ 2025-06-06 20:28 爱吃泡面的皮卡 阅读(11) 评论(0) 推荐(0)
摘要: C++ substr 函数学习路径 substr 是 C++ 中用来截取字符串子串的重要函数。 一、substr 基础概念 函数原型 string substr(size_t pos = 0, size_t len = npos) const; 参数说明 · pos:开始位置(从0开始计数) · l 阅读全文
posted @ 2025-05-31 09:44 爱吃泡面的皮卡 阅读(1176) 评论(0) 推荐(0)
摘要: find函数就像是一个"查找小助手",它能在一串数据(比如字符串、数组)中帮你找到特定元素的位置。 #include <iostream> #include <string> // 必须包含这个头文件 using namespace std; int main() { // 创建一个字符串 std: 阅读全文
posted @ 2025-05-30 20:32 爱吃泡面的皮卡 阅读(51) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页