上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页
摘要: #include <bits/stdc++.h> using namespace std; struct card{ //属性 string name; int id; string classroom; float money; int money_type;//0人民币 1美元 2 泰铢 str 阅读全文
posted @ 2023-11-19 10:05 fushuxuan1 阅读(41) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int index=0; int sum[1000]; int jia(string a,int i){ if(a.find("+")<0 || a.length<a.find("+")){ return s 阅读全文
posted @ 2023-11-17 20:04 fushuxuan1 阅读(23) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int js(string a,string b);//计算 //int jianfa(string a); //int chengfa(string a); //int chufa(string a); s 阅读全文
posted @ 2023-11-12 09:29 fushuxuan1 阅读(22) 评论(0) 推荐(0)
摘要: #include <iostream> #include <iomanip> using namespace std; int row=16; int col=16; int all[17][17]; bool black=true; bool whilt; int x,y; int a=1; in 阅读全文
posted @ 2023-11-05 10:01 fushuxuan1 阅读(103) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int f(int a,int b){ if(a==b){ return 1; } if(a>b){ swap(a,b); } return f(a,b-a)+1; } int main(){ int b,m 阅读全文
posted @ 2023-11-04 09:48 fushuxuan1 阅读(39) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-11-03 20:12 fushuxuan1 阅读(10) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #include <fstream> using namespace std; int main(int argc, char** argv) { char data[100]; ofstream a; a.open("hehe.txt"); cou 阅读全文
posted @ 2023-11-03 20:11 fushuxuan1 阅读(15) 评论(0) 推荐(0)
摘要: //按值 #include <bits/stdc++.h> using namespace std; int sum(int a){ if(a<=2){ return 1; }else{ return sum(a-1)+sum(a-2); } } int main(){ int x,c,d; cin 阅读全文
posted @ 2023-10-29 09:43 fushuxuan1 阅读(23) 评论(0) 推荐(0)
摘要: //按值传递 #include <bits/stdc++.h> using namespace std; /* 自定义函数必须在调用该函数之前声明 声明时可以不写函数体,但在后面需要将函数体补充完整 按值传递的形参与调用函数类型一致 */ int sum(int a,int b){ int n=a+ 阅读全文
posted @ 2023-10-29 09:13 fushuxuan1 阅读(35) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main(){ int a=10; int *p;//声明指针 p=&a;//将指针p指向变量a的内存地址 cout<<a<<endl; cout<<p<<endl;//a的内存地址 cout<<*p 阅读全文
posted @ 2023-10-28 09:49 fushuxuan1 阅读(14) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页