摘要: struct student { int num; char name[20]; float grade; }; 阅读全文
posted @ 2008-11-20 20:26 雨城 阅读(129) 评论(0) 推荐(0) 编辑
摘要: fprintf(stdout,"ch str\n"); fscanf(stdin,"%c %s",&ch,str); 阅读全文
posted @ 2008-11-20 20:00 雨城 阅读(341) 评论(1) 推荐(0) 编辑
摘要: #include 只有一个头文件 Read error 阅读全文
posted @ 2008-11-20 19:47 雨城 阅读(796) 评论(3) 推荐(0) 编辑
摘要: #include const double HD=3.1415926/180; void main() { cout"x\tsin(x)"endl; for (int i=0;i=180;i=i+30) couti"\t"sin(i*HD)endl; 阅读全文
posted @ 2008-11-20 19:10 雨城 阅读(632) 评论(0) 推荐(0) 编辑
摘要: #define YES 1 #define PI 3.1415926 #define RAD PI/180 #define MESG "This is a string." 阅读全文
posted @ 2008-11-20 18:55 雨城 阅读(112) 评论(0) 推荐(0) 编辑
摘要: #define MAX(a,b) ((a)>(b) ? (a):(b)) 阅读全文
posted @ 2008-11-20 18:40 雨城 阅读(105) 评论(0) 推荐(0) 编辑
摘要: #define PI 3.1416 #if 1 cout"i="iendl; #endif 阅读全文
posted @ 2008-11-20 17:34 雨城 阅读(313) 评论(0) 推荐(0) 编辑