摘要: #include <stdio.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; char name[20]; floa 阅读全文
posted @ 2021-06-16 21:29 靓仔欧耶 阅读(33) 评论(0) 推荐(0) 编辑
摘要: // 练习:使用选择法对字符串按字典序排序 #include <stdio.h> #include<string.h> const int N = 5; void selectSort(char str[][20], int n ); // 函数声明,形参str是二维数组名 int main() { 阅读全文
posted @ 2021-05-27 16:46 靓仔欧耶 阅读(32) 评论(1) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n,int m,int bb[N]) { int i,j,k=0,flag; for(j=n;j<=m;j++) { flag= 1; for(i=2;i<j;i++) 阅读全文
posted @ 2021-05-06 23:26 靓仔欧耶 阅读(66) 评论(1) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <windows.h> void printCharMan(int line,int col); void printSpaces(int n); int main(){ int line,col; fo 阅读全文
posted @ 2021-04-14 17:25 靓仔欧耶 阅读(52) 评论(1) 推荐(0) 编辑
摘要: #include <stdio.h> int main(){ int n,sum,x,y; sum=1; x=1; y=2; scanf("%d",&n); do { sum +=y; y=y*2; x++; }while(x<=n); printf("n=%d时,sum=%d\n",n,sum); 阅读全文
posted @ 2021-04-01 19:26 靓仔欧耶 阅读(33) 评论(0) 推荐(0) 编辑
摘要: // # include<studio.h> int main(){ int answer; char words[5000]; printf("网课学习让一些人欢喜一些人忧.\n"); printf("1.作为一个宅,社恐,觉得这样很好,有网络,自主学习,很OK.\n"); printf("2.不 阅读全文
posted @ 2021-03-25 19:37 靓仔欧耶 阅读(48) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main(){ printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0; } 阅读全文
posted @ 2021-03-15 14:18 靓仔欧耶 阅读(49) 评论(0) 推荐(0) 编辑