摘要:
#include int main() { struct Student { long int num; char name[20]; char sex; char addr[20]; } a={10101,"lilin",'M',"123 Bei Jing Road"}; printf("num=%d\n,name=%s\n,sex=%c\n,addr=%s\n",a.num,a.nam... 阅读全文
摘要:
#include struct student { int num; char name[20]; float score; }; int main() { struct student stu[5]={{10101,"lili",78},{10103,"gygy",98.5},{10106,"fttf",86},{10108,"bbhh",73},{10110,... 阅读全文
摘要:
#include"stdio.h"#include"stdlib.h"int main(){ void fun(int a[10]); int a[10]={0}; //定义一个含有10个整数的数组 并初始化 fun(a); system("pause"); }void fun(int a[]){ 阅读全文
摘要:
课堂上写程序的,明明看着没什么问题,结果一运行,出现错误一大堆,后来根据老师的方法,一句句的检查,加上同学的矫正,也发现了问题所在,主要是在函数调用那方面拿捏的不够好,以后会注意的😄 阅读全文
摘要:
#include void main() { void funstr(char a[],char b[]); char a[]="hello world"; char b[]="Hello World"; funstr(a,b); int i; char*p; p=a; for(i=0;i<10;i++); printf("... 阅读全文
摘要:
具体也没有出现大的差错,在运行的时候,发现运行错误,经过查看才知道是符号我用法不对,经过更改便能运行了 阅读全文
摘要:
#include int swap(int*x,int*y) {int z; *y=z; *y=*x; *x=z;} main() { int*x,*y,p,q; p=1; q=0; x=&p;y=&q; swap(x,y); printf("%d,%d",p,q);//输出最后换值后的结果· return 0; 阅读全文
摘要:
#include<stdio.h> void swop(int *x, int *y) { int t; t = *x; *x = *y; *y = t; } int main(void) { int a = 3; int b = 4; int *x = &a; int *y = &b; swop( 阅读全文
摘要:
http://www.cnblogs.com/zxg99/ 阅读全文