摘要:
main(){ FILE *fp; char str[100],filename[10]; int i=0;if((fp=fopen("test","w"))==NULL) //{printf("cnnot open file\n");exit(0); }printf("lease input a 阅读全文
摘要:
//计算机器运行时间 long i = 10000000L;clock_t start, finish;double duration;//测量一个事件持续的时间printf( "Time to do %ld empty loops is ", i) ;start = clock();while( 阅读全文
摘要:
char c; clock_t start,end; time_t a,b; double var; int i,guess; srand(time(NULL));loop: printf("DO YOU WANT TO PLAY IT .('y' or 'n')\n"); while((c=get 阅读全文
摘要:
#include<stdio.h>#include<malloc.h>#include<conio.h>#include<stdlib.h>#include "math.h"#define NULL 0#define LEN sizeof(struct cle) struct cle { int n 阅读全文
摘要:
#include <stdio.h> #include <malloc.h>#include<graphics.h>#include<conio.h> #define LEN sizeof(struct student)#include "math.h"#define PI 3.1415926 vo 阅读全文