上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 29 下一页
摘要: #include<iostream>#include<cstdio> #pragma warning(disable : 4996) using namespace std; int main() { char str[1000]; FILE *fp = fopen("4.txt", "r"); w 阅读全文
posted @ 2022-03-16 14:12 江南王小帅 阅读(54) 评论(0) 推荐(0)
摘要: #include<iostream>#include<cstdio>#include<algorithm> #pragma warning(disable : 4996) using namespace std; int a[1000];int main() { //文本文件的读写 FILE *fp 阅读全文
posted @ 2022-03-16 14:02 江南王小帅 阅读(47) 评论(0) 推荐(0)
摘要: #include<iostream>#include<cstdio>#include<string>#include<cmath>#include<fstream> #pragma warning(disable : 4996) using namespace std; int main() { c 阅读全文
posted @ 2022-03-16 09:59 江南王小帅 阅读(25) 评论(0) 推荐(0)
摘要: #include<iostream>#include<cstdio>#include<string>#include<cmath>#pragma warning(disable : 4996) using namespace std; void Swap(int *p1, int *p2) { in 阅读全文
posted @ 2022-02-16 16:13 江南王小帅 阅读(63) 评论(0) 推荐(0)
摘要: #include<iostream>#include<cstdio>#include<string> #pragma warning(disable : 4996) //递归 //一个函数调用自己 就是递归 //递归函数需要有终止条件,否则会无穷递归导致程序无法终止甚至崩溃 //求阶乘 using 阅读全文
posted @ 2022-02-15 10:33 江南王小帅 阅读(45) 评论(0) 推荐(0)
摘要: #include<iostream>#include<cstdio>#include<string> #pragma warning(disable : 4996) //一维数组作为函数参数 //当数组作为参数,传引用,形参和实参内容是一样的,形参改变,实参跟着改变//传引用和其他参数是有区别的 u 阅读全文
posted @ 2022-02-15 10:28 江南王小帅 阅读(188) 评论(0) 推荐(0)
摘要: //一维数组作为函数参数//编写一个求整形数组最大值的函数 using namespace std; int a1[4] = { 4,43,67,1 };int a2[] = { 2,57,96,23,94,2,15 }; int FindMax(int a[], int length) { int 阅读全文
posted @ 2022-02-15 10:22 江南王小帅 阅读(138) 评论(0) 推荐(0)
摘要: #include<iostream>#include<cstdio>#include<string> #pragma warning(disable : 4996) using namespace std; int Max(int x, int y); int main() { int n = Ma 阅读全文
posted @ 2022-02-15 09:45 江南王小帅 阅读(42) 评论(0) 推荐(0)
摘要: #include<iostream>#include<cstdio>#include<string> #pragma warning(disable : 4996) #define ROW 2#define COL 2 //二维数组//计算两个矩阵相乘 using namespace std; in 阅读全文
posted @ 2022-02-15 09:34 江南王小帅 阅读(240) 评论(0) 推荐(0)
摘要: include<iostream>#include<cstdio>#include<string> #pragma warning(disable : 4996) #define NUM 100 //数组 using namespace std; string weekday[] = { "mond 阅读全文
posted @ 2022-02-12 14:25 江南王小帅 阅读(27) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 29 下一页