自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 数据链表

#include<stdio.h> #include<malloc.h> typedef char ElemType; typedef struct LNode { ElemType data; struct LNode *next; }LinkList; void InitList (LinkList *&L) { L=(LinkList *)malloc(sizeof(LinkList)); L->next=NULL; } void CreateListR(Lin

2020-10-06 17:31:11 236

原创 自定函数

#include<stdio.h> int sum(int n) { int i; int s=0; for(i=1;i<=n;i++){ s+=i; } return s; } int main(void){ int s=0; s=sum(100); printf("%d\n",s); s=sum(200); printf("%d\n",s); s=sum(10); prin...

2019-11-18 13:35:41 409

原创 循环

#include<stdio.h> int main( ) { int i=1; while(1){ printf(“第%d只羊\n”,i); i++;} return 0; } #include<stdio.h> #include<Windows.h> int main( ) { int i=1; while(i<=100){ printf(“第%d只羊...

2019-11-07 22:43:40 142

原创 交换机管理

#include<stdio.h> #include<string.h> int main( ) { char name[32]; char password[16]; while(1){ printf("请输入用户名:"); scanf("%s",name); printf("请输入密码:"); scanf("%s",password); if(strcmp(n...

2019-11-07 18:44:43 459

原创 字符串的比较

#include<stdio.h> #include<string.h> int main( ) { char str1[32]=“li”; char str2[32]; int ret; scanf("%s",str2); ret= strcmp(str1,str2); printf("%d\n",ret); return 0; } #include<stdio....

2019-11-07 12:47:16 103

原创 特殊函数用法

#include<stdio.h> #include<string.h> int main( ) { char name[64]; int len; gets(name); len=strlen(name); printf("%d\n",len); return 0; } #include<stdio.h> #include<string.h> in...

2019-11-05 20:17:28 202

原创 输名字

#include<stdio.h> int main( ) { char name[32]; gets(name); printf("%s\n",name); return 0; } #include<stdio.h> int main( ) { char name[8]; fgets(name,8,stdin); printf("%s\n",name); return 0...

2019-11-05 19:17:51 228

原创 两种输入名字的方法

#include<stdio.h> int main( ) { char name[5]; name[0]=‘r’; name[1]=‘o’; name[2]=‘c’; name[3]=‘k’; name[4]=’\0’; printf(“name=%s\n”,name); return 0; } #include<stdio.h> int main( ) { char n...

2019-11-05 18:48:47 490

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除