自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 C语言编写的学生考勤信息管理系统

#include <stdlib.h> #include <stdio.h> #include <string.h> #include<conio.h> #include <windows.h> struct student { char name[16]; //姓名 char ID[10]; ...

2020-03-18 12:27:57 5226 3

原创 输入2个随机长度字符串,将2个字符串拼接

#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char *p,*p1,*p2; p1=(char *)malloc(sizeof(char)); scanf("%s",p1); p2=(char *)malloc(sizeof(char)); scanf(...

2019-12-10 14:25:50 447

原创 找出数组中重复的数字

#include <stdio.h> void Find_repeat_num(int *arr1,int len); void Find_repeat_num(int *arr1,int len) { int i,j; puts("repeat num are:"); for(i=0;i<len-1;i++) for(j=i+1;j<len;j++) i...

2019-12-09 23:35:11 107

原创 输入整数,用指针排序并输出

#include <stdio.h> void sort(int *p); void put(int *p); void put(int *p) { int i; for(i=0;*(p+i)!='\0';i++) printf("%d ",*(p+i)); putchar(10); } void sort(int *p) { int i,j,temp,t; for(i=...

2019-12-04 23:24:10 397

原创 用动态内存分配、链表、结构体,查平均分,总分最高学号,单科成绩最低学号

#include <stdio.h> #include <stdlib.h> #define N 2//ÒªÊä³ö¼¸¸öÈ˵ÄÊý¾Ý£¬×Ô¼º¸Ä struct student { char id[10]; char name[10]; int score[4]; struct student *next; }; void put(struct stud...

2019-12-03 14:29:05 482

原创 用动态内尺寸分配创建字符串数组,对数组排序并输出

#include <stdio.h> #include <stdlib.h> #include <string.h> void puts(); void sort(char *p[],int n); void sort(char *p[],int n) { char *t; int i,j; for(i=0;i<n-1;i++) { for(j...

2019-12-03 14:23:34 196

原创 求最大公约数和最小公倍数

#include <stdio.h> void maxmin(int m,int n) { int i,t; if(m<n) { t=m; m=n; n=t; } for(i=m;i>0;i++) if(i%m==0&&i%n==0) { printf("×î´ó¹«±¶ÊýΪ:%d",i); printf("...

2019-12-03 14:10:09 119

原创 整型数字转换成字符型,逆序输出

#include<stdio.h> #include<math.h> #include <ctype.h> int main() { char s[132]; char c[132]; int i,j; int n; scanf("%d", &n); j=0; while(n) { j=j*10+n%...

2019-12-03 13:51:21 225

原创 统计一个字符串中字母出现的次数

#include <stdio.h> #include <ctype.h> int main(void) { int a[26]={0}; int i; char c; while ((c=getchar())!='\n')//输入字符串 if (isalpha(c)) a[tolower(c)-'a']++; for (i = 0; i<26...

2019-12-03 13:47:00 376

空空如也

空空如也

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

TA关注的人

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