随笔 - 58  文章 - 1  评论 - 5  阅读 - 10万

随笔分类 -  常用C函数

一些关于链表操作的代码
摘要:#include #include #include #define SIZE 10 struct node { int num; struct node *next; }; struct stud { char name[10]; int num; }sw[5],sr[5],*pw,*pr; void selectsort(int *); void b... 阅读全文
posted @ 2017-03-18 00:31 lie隼 阅读(161) 评论(0) 推荐(0) 编辑
C语言之大数相加
摘要:#include#includeint main(){ int f; int i,an,bn,k; char a[1000],b[1000]; int af[1000]={0},bf[1000]={0},c[1000]; while(scanf("%s%s",a,b)!=EOF) //输入字符串... 阅读全文
posted @ 2013-09-13 17:34 lie隼 阅读(956) 评论(0) 推荐(0) 编辑
输入一个年输出其天干地支纪年法的表达式
摘要:#include #include using namespace std;char *day_name1(int x){ static char *name[20]={"Gui","Jia", "Yi", "Bing", "Ding", "Wu", "Ji", "Geng", "Xin", "Re... 阅读全文
posted @ 2013-08-24 11:23 lie隼 阅读(439) 评论(0) 推荐(0) 编辑
整数各位数分离(C语言代码)
摘要:#includeint main(){ int m=1,i=0; long int n; int a[16]; printf("Input an integer: "); scanf("%ld",&n); if(n=0;i--) printf("%d ",a[i]); printf("\n"); ... 阅读全文
posted @ 2013-08-10 11:10 lie隼 阅读(1521) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示