上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页

学生管理系统

摘要: https://files.cnblogs.com/files/blogs/793080/0219.zip?t=1708343996&download=true 阅读全文
posted @ 2024-02-19 20:02 wessf 阅读(8) 评论(0) 推荐(0)

请编写函数fun,它的功能是:求出1到100之内能被7或者11整除, 但不能同时被7和11整除的所有整数,并将他们放在a所指的数组中, 通过n返回这些数的个数

摘要: /2.请编写函数fun,它的功能是:求出1到100之内能被7或者11整除, 但不能同时被7和11整除的所有整数,并将他们放在a所指的数组中, 通过n返回这些数的个数/ #include <stdio.h> #include <string.h> int fun(int *buf) { int i=1 阅读全文
posted @ 2024-02-18 17:01 wessf 阅读(96) 评论(0) 推荐(0)

1.m个人的成绩存放在score数组中,请编写函数fun, 它的功能是:将低于平均分的人数作为函数值返回, 将低于平均分的分数放在below所指定的数组中。

摘要: /1.m个人的成绩存放在score数组中,请编写函数fun, 它的功能是:将低于平均分的人数作为函数值返回, 将低于平均分的分数放在below所指1定的数组中。/ #include <stdio.h> #include <string.h> int fun(int *buf, int *buff, 阅读全文
posted @ 2024-02-18 16:43 wessf 阅读(138) 评论(0) 推荐(0)

学习使用如何调用外部函数

摘要: >学习使用如何调用外部函数 ```c #include int a,b,c; void add() { int a; a=3; c=a+b; } int main() { a=b=4; add(); printf("c的值为%d\n",c); return 0; } 阅读全文
posted @ 2023-06-11 20:49 wessf 阅读(27) 评论(0) 推荐(0)

学习使用static的另一用法

摘要: >学习使用static的另一用法 ```c #include int main() { int i,num; num=2; for(i=0;i<3;i++) { printf("num变量为%d\n",num); num++; { static int num=1; printf("内置模板num变 阅读全文
posted @ 2023-06-11 20:49 wessf 阅读(12) 评论(0) 推荐(0)

学习 static 定义静态变量的用法

摘要: >学习 static 定义静态变量的用法 ```c #include void foo() { static int x=0; x++; printf("%d\n",x); } int main() { foo(); foo(); foo(); return 0; } 阅读全文
posted @ 2023-06-11 20:49 wessf 阅读(19) 评论(0) 推荐(0)

学习使用auto定义变量的用法

摘要: >学习使用auto定义变量的用法 ```c #include int main() { int i,num; num=2; for(i=0;i<3;i++) { printf("num变量为%d\n",num); num++; { auto int num=1; printf("内置模板num变量: 阅读全文
posted @ 2023-06-11 20:49 wessf 阅读(30) 评论(0) 推荐(0)

复数相加

摘要: >复数相加 ```c #include typedef struct complex { float real; float imag; } complex; complex add(complex n1,complex n2); int main() { complex n1, n2, temp; 阅读全文
posted @ 2023-06-10 20:40 wessf 阅读(26) 评论(0) 推荐(0)

将字符串写入文件

摘要: >将字符串写入文件 ```c #include #include int main() { char sentence[1000]; FILE *fptr; fptr=fopen("runoob.txt","w"); if(fptr==NULL) { printf("error"); exit(1) 阅读全文
posted @ 2023-06-10 20:40 wessf 阅读(26) 评论(0) 推荐(0)

计算标准偏差

摘要: >计算标准偏差 ```c #include #include float calculateSD(float data[]); int main() { int i; float data[10]; printf("输入十个元素: "); for(i=0;i<10;++i) { scanf("%f" 阅读全文
posted @ 2023-06-09 21:30 wessf 阅读(23) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页