摘要: 源程序: #include <stdio.h>#include <string.h> int main(){ char str[20]; int length; length=strlen(strcpy(str,"Hello World!")); printf("字符串长度:%d\n",length 阅读全文
posted @ 2020-12-14 21:30 bobo哥 阅读(154) 评论(0) 推荐(0)
摘要: 源程序: #include <stdio.h>void sum_data(unsigned int num,int *data,int *sum){ unsigned int count; int sum_temp; sum_temp=0; for(count=0;count<num;count++ 阅读全文
posted @ 2020-12-14 21:21 bobo哥 阅读(388) 评论(0) 推荐(0)
摘要: 源程序: #include <stdio.h>#define N 5int main(){ int score[N]; //={89,67,80,85,79}; int i,j,max,min,temp; for(i=0;i<N;i++) { printf("请输入第 %d 学生的成绩:",i+1) 阅读全文
posted @ 2020-12-14 20:45 bobo哥 阅读(878) 评论(0) 推荐(0)