自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 vk-unicloud使用XLSX导入excel表格页面会 不显示 (Vue 也是一样的)

vk-unicloud 使用XLSX导入excel表格页面会不显示(Vue 也一样)

2022-11-09 19:29:18 453 1

原创 10.2

41. #include <stdio.h> typedef struct list { char data; struct list *next; } Q; void fun( Q *pa, Q *pb, Q *pc) { Q *p; /**********found**********/ pa->next=pb; pb->next=pc; p=pa; while( p ) { /**********found**********

2021-09-04 14:28:59 90

原创 9.2

41 #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> char *fun(char *s) { int i, j, k, n; char *p, *t; n=strlen(s)+1; t=(char*)malloc(n*sizeof(char)); p=(char*)malloc(n*sizeof(char)); j=

2021-09-04 14:18:42 89

原创 7.2

41. #include <stdlib.h> #include <stdio.h> #define N 20 void fun( int *a) { int i, x, n=0; x=rand()%20; /**********found**********/ while (n<N) { for(i=0; i<n; i++ ) /**********found**********/ if( x==a[i] )

2021-08-05 16:16:35 94

原创 6.2

41. #include <stdio.h> #include <string.h> #include <ctype.h> #define N 9 long ctod( char *s ) { long d=0; while(*s) if(isdigit( *s)) { /**********found**********/ d=d*10+*s-'0'; /**********found**********/ s++;

2021-08-05 15:45:23 110

原创 10.1

91. #include<stdio.h> #include<string.h> main() { char a[100],b[100],c[200],*p; scanf("%s%s",a,b); int i=0,j=0,k=0; while(a[i]!='\0'&&b[j]!='\0') { if(a[i]<=b[j]) c[k++]=a[i++]; else c[k++]=b[j++]; } c[k]='\0'; if(a[i

2021-08-01 15:33:25 68

原创 9.1

81. #include<stdio.h> fun(int a[],int n,int m) { int i,j,b[m]; for(i=0;i<m;i++) b[i]=a[n-1-i]; for(i=n-m-1;i>=0;i--) a[i+m]=a[i]; for(i=0;i<m;i++) a[i]=b[i]; } main() { int i,a[10],m; for(i=0;i<10;i++) scanf("%d",&a[i]); sc

2021-08-01 15:30:09 91

原创 8.1

71. #include<Stdio.h> #include<math.h> main() { int i,j,m; for(m=1;m<100000;m++) { i=sqrt(m+100); { if(i*i==(m+100)) { j=sqrt(m+268); if(j*j==(m+268)) printf(" %d",m); } } } } 72. #include<stdio.h> main(

2021-07-25 16:02:22 88

原创 7.1

61. #include<stdio.h> #include<stdlib.h> main() { FILE *fp; char a[10],ch; scanf("%s",a); if((fp=fopen(a,"w"))==NULL) exit(0); ch=getchar(); ch=getchar(); while(ch!='#') { fputc(ch,fp); ch=getchar(); } putchar(10); fclose(fp);

2021-07-25 16:00:04 68

原创 6.1

51. #include<stdio.h> #include<stdlib.h> #define LEN sizeof(struct student) struct student { int num; char name[100]; struct student *next; }; int n; struct student *scan(void) { struct student *p1,*p2,*head; p1=p2=(struct student *)malloc

2021-07-25 15:57:31 109

原创 5.1

41. #include<stdio.h> fn(int a,int n) { int i,sum=a; for(i=1;i<n;i++) { sum=sum*10+a; } return(sum); } main() { int a,n,sum=0; int i; scanf("%d%d",&a,&n); for(i=1;i<=n;i++) { sum+=fn(a,i); } printf("%d", sum); }

2021-07-25 15:55:07 95

原创 4.2

41. #include <stdlib.h> #include <stdio.h> #define N 10 double fun(double *x) { int i, j; double s, av, y[N]; s=0; for(i=0; i<N; i++) s=s+x[i]; /**********found**********/ av=s/N; for(i=j=0; i<N; i++) if( x[i]>

2021-07-25 15:51:56 99

原创 4.1

31. #include<stdio.h> scan(int *a) { int i; for(i=0;i<10;i++) scanf("%d",(a+i)); } fun(int *a) { int max=*a,min=*a,i; for(i=0;i<10;i++) { if(max<*(a+i)) max=*(a+i); if(min>*(a+i)) min=*(a+i); } for(i=0;i<10;i++) { i

2021-07-25 15:40:05 79

原创 3.2

#include <stdlib.h> #include <stdio.h> #define N 10 double fun(double x[],double *av) { int i,j; double d,s; s=0; for(i=0; i<N; i++) s = s +x[i]; /**********found**********/ *av=s/N; d=32767; for(i=0; i<N; i++)

2021-07-18 15:14:09 123

原创 3.1

21 #include<stdio.h> struct student { int num; char name[10]; int cheng[3]; }stu[10]; main() { int i,j; for(i=0;i<10;i++) { scanf("%d%s%d%d%d",&stu[i].num,stu[i].name,&stu[i].cheng[0],&stu[i].cheng[1],&stu[i].cheng[2]); }

2021-07-12 16:26:26 100

原创 2.2

#include <stdlib.h> #include <stdio.h> #define N 10 double fun(double x[],double *y) { int i,j; double av; /**********found**********/ av=0.0; /**********found**********/ for(i=0; i<N; i++) av=av+x[i]/N; for(i=j=0; i&lt

2021-07-09 17:01:37 132

原创 2

11 #include<stdio.h> float fish(float n) { if(n==5) return (11); else return ((n+1)/n)*(fish(n+1)+1/(n+1)); } main() { printf("%f",fish(1)); } 12 #include<stdio.h> void splitfloat(float x,int *intpart,float *fracpart) { *intpart=(int)x; *f

2021-07-09 16:59:10 118

原创 暑假作业1.2

#include <stdio.h> #define N 5 typedef struct student { long sno; char name[10]; float score[3]; } STU; void fun(char *filename, STU n) { FILE *fp; /**********found**********/ fp = fopen(filename, "rb+"); /**********found*******

2021-07-03 20:31:07 150

原创 暑假作业1

1, #include<stdio.h> even(int n) { if(n%2) return(1); else return(0); } main() { int n,sum=0; scanf("%d",&n); while(n) { if(even(n)) sum+=n; scanf("%d",&n); } printf("%d",sum); } 2. #include<stdio.h> #in

2021-07-03 20:12:22 115

原创 结构体数组

//1,2 #include<stdio.h> main() { struct student { int num; char name[1000]; char gender; struct birthday { int year; int month; int day; }a; int age; char addr[100]; int score[3]; int total; int ave; char grade;

2021-05-10 09:53:40 66

原创 2021-05-05

#include<stdio.h> main() { struct x { int x;//定义学号 struct date//定义新的结构体 { int year;//年 int month;//月 int day;//日 }a; }stu1={1,.a={2001,1,3}},stu2={2,.a={2001,1,2}};/* .的意思是的(de),所以.a的意思和stu1的意思一样都是代表,而.a={}是给上面定义过的新的结构体中的年,月

2021-05-05 19:35:56 33

原创 2021-04-18

网页制作 马上要插入图片 开始了 对图片进行超链接 一个我也不知道的网站你可一点一点

2021-04-18 19:56:17 35

原创 99

#include <stdio.h> main() { int a,b,c; for (a=1; a<=3; a++) for (b=1; b<=3; b++) for (c=1; c<=3; c++) if (a!=1&&c!=1&&c!=3&&a!=b&&a!=c&&b!=c)

2021-02-20 20:14:36 52

原创 67

#include "stdio.h" #include "stdlib.h" #include "conio.h" int main() { int c,num=0; while(1) { c=getche(); if (c==13) { printf("\n"); num++; }

2021-02-20 20:12:47 46

原创 py5

2021-02-20 20:11:27 215

原创 py4

2021-02-20 20:10:55 183

原创 py3

a=3 b=4 c=a+b print(“c”) 输出7 如果是字符输出则是34 1.使用变量前要赋值 2.变量包括字母数字,下划线,单变量名不能以数字开头 3.字母可以大写小写但是大小写字符代表的意思是不同的,也就是A和a是不同的意思 4.变量名可以取任何合法的名字,但作为一个优秀的程序员要将变量名取得专业一点。 字符转可以为单引号或双引号但是却不能是一边是单引号而一边是双引号 要打印单引号或双引号 第一种方法为’或" 第二种为直接输出原始字符串 str = r’c:\now’ ...

2021-02-20 20:08:22 138

原创 py2

用python做一个简易小游戏 print ("-----我爱鱼-----") temp = input(“猜一下我想的数字”) guess = int(temp) if guess == 8: print(“dui”) print(“猜对了也没有奖励”) else: print(“cuole”) print(“game over”) 这里要注意在每一句判断语句后要加一个缩进不然python不会问对不对直接输出 而且if和else后面要加上冒号。 流程图为 如何查看内置函数 dir(builtins) 如

2021-02-20 19:56:18 267

原创 py1

输入print(“i love fish”) 输出i love fish python和C语言有所不同比如输出语句C语言为printf,python为print而且C语言的每一句结尾要加分号而python不用。 python能够直接输出算数 比如 print (5+3) 输出为 8 当然也可以不用加print python也不像C语言一样 收到计算位数的限制 输入print(“well water”+“river”) 输出well waterriver 输入print(“well water”*8) 输出8

2021-02-20 19:33:50 282

原创 100

#include<stdio.h> #include<math.h> void main() { float a,b,c,s,chang; scanf("%f%f%f",&a,&b,&c); if(a+b>c&&a+c>b&&c+b>a) { chang=(a+b+c)/2; s=sqrt(chang*(chang-a)*(chang-b)*(chang-c)); printf("%f",s

2021-02-19 19:21:16 57

原创 98

#include<stdio.h> #include<math.h> void main() { int x, y, shu=1; int i; printf("please input x and y:\n"); scanf("%d%d",&x,&y); for (i=1;i<=y;i++) shu=shu*x%1000; printf("%d",shu); }

2021-02-19 19:20:46 37

原创 97

#include<stdio.h> void main() { float i=2,sum=0,j=0; while(i<=100) { sum+=0.8*i; i=i*2; j++; } printf("%f",sum/j); }

2021-02-19 19:20:20 84 1

原创 96

#include<stdio.h> void main() { int i,sum; for(i=1;i<=10;i++) { sum=10; sum*=i; printf("%5d",sum); } }

2021-02-19 19:19:18 51

原创 95

#include<stdio.h> void main() { int i,num=0; for(i=1000;i<=2000;i++) { if(i%4==0&&i%100!=0||i%400==0) { num++; printf("%d ",i); } } printf("%d",num); }

2021-02-19 19:18:46 43

原创 94

#include<stdio.h> void main() { int i; for(i=100;i<1000;i++) { if(i%2==1&&i%3==2&&i%5==4&&i%6==5&&i%7==0) printf("%5d",i); } }

2021-02-19 19:17:11 35

原创 93

#include<stdio.h> void main() { char c[100]; int shu=0,i,shu1=1; gets(c); for(i=0;i<100;i++) { if(c[i]==' ') shu1=0; else if(shu1==0) { shu++; shu1=1; } } printf("%d",shu); }

2021-02-19 19:16:44 53

原创 92

#include<stdio.h> void main() { int c[10],i,sum=0,arr=0,f,j; for(i=0;i<10;i++) scanf("%d",&c[i]); for(j=0;j<9;j++) for(i=0;i<9-j;i++) { if(c[i]>c[i+1]) { f=c[i];c[i]=c[i+1];c[i+1]=f; } if(c[i]<

2021-02-19 19:14:58 38

原创 91

#include<stdio.h> void main() { int c[10],i,sum=0,arr=0; for(i=0;i<10;i++) scanf("%d",&c[i]); for(i=0;i<10;i++) { if(c[i]>0) { sum+=c[i]; arr++; } } printf("%d %d",arr,sum/arr); }

2021-02-19 19:14:35 58

原创 90

#include<stdio.h> void main() { int c; while(1) { c=getchar(); if(c>='a'&&c<='z') c-=32; if(c>='A'&&c<='Z') c=c; else { break; } putchar(c); } }

2021-02-19 19:12:45 44

原创 89

#include<stdio.h> #define p 3.14 void main() { float s; int r; for(r=1;r<100;r++) { s=p*r*r; if(s>100) { break; } printf("%f ",s); } }

2021-02-18 19:20:45 111

空空如也

空空如也

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

TA关注的人

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