#include<stdio.h>int main(){ FILE *fp; if((fp=fopen("c://my/test.txt","r+"))==NULL) { printf("文件没有正确打开,不能往下执行了. \n"); &n
/*结构体类型*/typedef struct { int num;/*宿舍号*/ char name[20];/*姓名*/ char sex[5];/*性别*/ int age;/*年龄*/ char studentclass[20];/*班级*/ int score;/*成绩*/}STUDENTS;通过结构体可以使定义后的变量表
#include <stdio.h>#include <conio.h>#include <stdlib.h>#include <time.h>#define N 35void print(int [][N]);//输出函数void movebul(int [][N]);//子弹移动函数void movepla(int [][N]);//
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号