自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 0417.....

#include <stdio.h> #include <stdlib.h> typedef int Elemtype; typedef struct node { Elemtype data; struct node * next; }Node, * LinkList;// 结构体的定义 LinkList Created(LinkList L);// 用尾插法建立单链表 void show(LinkList L);// 显示单链表的元素内容 int main() { .

2022-04-17 20:11:41 573

原创 0416.......

#include <stdio.h> //把乱序的数组用选择排序从小到大排序 int main() { int a[4];//定义数组 int tmp, tar; for (int i = 0; i < 4;i++) scanf("%d", &a[i]); for (int i = 0; i < 3;i++) { tar = i;//假定第i个是最小的 ,tar同时用来记录最小的元素下标 for (i.

2022-04-16 21:58:06 39

原创 0414...

#include <stdio.h> typedef struct student { int age; float high; char name[10]; }stu; int main() { int n; printf("请输入小屁孩的个数:n = "); scanf("%d", &n); // struct student kid[n]; stu kids[n]; // 用变长数组定义结构体数组 .

2022-04-16 21:56:33 52

原创 【无标题】

#include<stdio.h>//standardioinputoutput #include<string.h> #include<math.h> intmain() { charch; chararr[6]; //scanf("%s",arr); gets(arr); scanf("%c",&ch); printf("%s\n",arr); printf("$###%...

2022-04-14 19:33:26 163

原创 0410......

函数 用函数求1-100的和 #include <stdio.h> int tot(int x, int y);//求任意两个整数a,b之间的数字和 int main() { int a, b, sum; scanf("%d %d", &a, &b); sum = tot(a, b); printf("%d\n", sum); return 0; } int tot(int x, int y)//x的值是a, y的值是b 在子函数体中,有效的是x, y {

2022-04-10 20:36:47 300

原创 0407....

#include <stdio.h> int main() { int sum = 0, i; for (i = 1; i <= 100; i++) { sum += i; } // while (i <= 100) // { // sum += i; // } printf("1-100的和为%d\n", sum); return 0; } #include <stdio.h> int main()// 循环嵌套 { int i = .

2022-04-07 20:57:54 228

空空如也

空空如也

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

TA关注的人

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