上一页 1 ··· 8 9 10 11 12 13 下一页
摘要: 1.求第一门课程的平均分 2.找出有两门以上不及格的学生 3.找出平均分在90分以上或全部课程在85分以上的学生 #include<stdio.h> #include<math.h> #include<string.h> #define M 4 #define N 5 void Average(in 阅读全文
posted @ 2024-05-20 16:08 zhongta 阅读(19) 评论(0) 推荐(0)
摘要: 用指针数组实现排列字符串 #include<stdio.h> #include<math.h> #include<string.h> #define N 5 void OrderString(char *p[],int n); int main(){ char *arr[10]={"Hello"," 阅读全文
posted @ 2024-05-20 15:19 zhongta 阅读(11) 评论(0) 推荐(0)
摘要: 将最大值放在5*5矩阵中央 将左上右上左下右下分别放第1,2,3,4的最小值 #include<stdio.h> #include<math.h> #include<string.h> #define N 5 void Move(int (*arr)[N]); int * Max(int (*arr 阅读全文
posted @ 2024-05-19 16:37 zhongta 阅读(32) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<math.h> #include<string.h> void Transfer(int *arr); int main(){ int arr[3][3]={1,2,3,4,5,6,7,8,9}; Transfer(arr); for(int i 阅读全文
posted @ 2024-05-19 15:27 zhongta 阅读(78) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<math.h> void Round(int *arr,int n); void SearchLast(int *arr,int n); int main(void){ int arr[4]; Round(arr,4); SearchLast(a 阅读全文
posted @ 2024-05-19 14:49 zhongta 阅读(13) 评论(0) 推荐(0)
摘要: 有N个整数,使前面各数顺序向后移动M个位置,最后M个数变成最前面M个数。 #include<stdio.h> #include<math.h> void Move(int *arr,int n,int m); int main(void){ int arr[10]={99,88,77,66,55,4 阅读全文
posted @ 2024-05-19 12:15 zhongta 阅读(34) 评论(0) 推荐(0)
摘要: 将最小的数与第一个数对换,把最大的数与最后一个数对换。 写3个函数:1.输入10个数。2.进行处理。3.输出10个数。 #include<stdio.h> #include<math.h> void Input(int *arr); void Change(int *arr); void Outpu 阅读全文
posted @ 2024-05-19 11:51 zhongta 阅读(37) 评论(0) 推荐(0)
摘要: 1、求学生平均分 2.求每门课平均分 3.找出最高分数的课程与学生 4.求平均分方差(计算错误,找不出原因) #include<stdio.h> #include<math.h> #define M 10 #define N 5 float Average(float score[M][N],int 阅读全文
posted @ 2024-05-14 15:35 zhongta 阅读(14) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<math.h> double Solut(double a,double b,double c,double d); int main(void){ double a,b,c,d; scanf("%lf,%lf,%lf,%lf",&a,&b,&c 阅读全文
posted @ 2024-05-12 15:11 zhongta 阅读(18) 评论(0) 推荐(0)
摘要: 输入一行字符,输出最长的单词。 #include<stdio.h> #include<string.h> #define N 100 int LongestVoc(char str[]); int Alpha(char c); int main(void){ char str[N]; printf( 阅读全文
posted @ 2024-05-11 16:39 zhongta 阅读(84) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 下一页