摘要: 打印一个X型的*#define IABS(x) ( (x)>=0? (x):(-x) )void print(int size){ int x,y; for(int y=-size;y<=size;y++) { for(int x=-size;x<=size;x++)... 阅读全文
posted @ 2015-01-08 16:22 mightyq 阅读(103) 评论(0) 推荐(0)
摘要: 参考《C语言入门经典》 1 struct horse /*没有horse,就是无名的结构体*/ 2 { 3 int age; 4 int height; 5 }Slever; /*slever是这种结构体类型(horse类型)的一个变量*/ 6 7 struct horse Da... 阅读全文
posted @ 2014-12-24 10:41 mightyq 阅读(194) 评论(0) 推荐(0)
摘要: #include#include#include #define MAXSIZE 20#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0typedef int Status;typedef int ElemType;typedef str... 阅读全文
posted @ 2014-12-24 02:09 mightyq 阅读(126) 评论(0) 推荐(0)