摘要: #include<stdio.h> int main() {struct Student //声明结构体类型struct Student { long int num; //以下4行为结构体的成员 char name[20]; char sex; char addr[20]; }a={10101," 阅读全文
posted @ 2017-04-11 17:30 crytonym 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1.#include<stdio.h>void swap(int *p3,int *p4){ int t; t=*p3; *p3=*p4; *p4=t;}main(){ int a,b; int *p1,*p2; p1=&a; p2=&b; printf("输入a,b的值:") ; scanf("% 阅读全文
posted @ 2017-03-26 10:26 crytonym 阅读(86) 评论(1) 推荐(0) 编辑