摘要:
阅读全文
posted @ 2017-05-21 21:43
该☆隐
阅读(126)
评论(0)
推荐(0)
摘要:
#include"stdio.h" main() { enum weekday{ sun,mon,tue,wed,thu,fri,sat } a,b,c; a=sun; b=mon; c=tue; printf("sun=%d,mon=%d,tue=%d\n",a,b,c); } 阅读全文
posted @ 2017-05-21 21:40
该☆隐
阅读(147)
评论(0)
推荐(0)
摘要:
#include"stdio.h" struct student { int number; char name[8]; char sex[8]; int age; float c_program; }stu[5]={ {35013101,"王 迪",'F',20,90}, {35013105,"... 阅读全文
posted @ 2017-05-21 21:34
该☆隐
阅读(98)
评论(0)
推荐(0)
摘要:
#include"stdio.h" void exchange(int *p,int *q) { int t; t=*p; *p=*q; *q=t; } main() { int a,b; printf(“请输入两个数:"); scanf("%d%d",&a,&b); if(a>b) exchang... 阅读全文
posted @ 2017-05-21 21:29
该☆隐
阅读(230)
评论(0)
推荐(0)
摘要:
#include"stdio.h"main() { char string[20]="I love China!"; printf("%s\n",string); printf("%s\n",string+7); } #include"stdio.h" main() { char *p="I love China!"; printf("%s\... 阅读全文
posted @ 2017-05-21 21:25
该☆隐
阅读(215)
评论(0)
推荐(0)
摘要:
main() { int a[10],*p1,*p2; p1=&a[2]; p2=&a[5]; printf("%p\n",p1); printf("%p\n",p2); printf("%d\n",p2-p1); } 阅读全文
posted @ 2017-05-21 21:21
该☆隐
阅读(183)
评论(0)
推荐(0)
摘要:
#include"stdio.h" main() { int a=7,b=9,*p; p=&a; *p=*p+b; printf("%d,%d\n",a,*p); } main() { int a,b,*t,*p,*q; p=&a; q=&b; printf(“请输入两个整数:"); sca... 阅读全文
posted @ 2017-05-21 21:17
该☆隐
阅读(138)
评论(0)
推荐(0)
摘要:
#include"stdio.h" #define PI 3.14 main() { float l,s,r; printf("请输入半径:"); scanf("%f",&r); l=2.0*PI*r; s=PI*r*r; printf("l=%.2f s=%.2f\n",l,s); } #include"stdio.h" #defin... 阅读全文
posted @ 2017-05-21 21:13
该☆隐
阅读(158)
评论(0)
推荐(0)
摘要:
#include"stdio.h" void f(int a,int b) { int i,j; i=a+2; j=b-1; printf("函数f中:a=%d,b=%d\n",a,b); printf("函数f中:i=%d,j=%d\n",i,j); } main() { int i=4,j=5; f(i,j); print... 阅读全文
posted @ 2017-05-21 21:07
该☆隐
阅读(121)
评论(0)
推荐(0)

浙公网安备 33010602011771号