一堆应该记住的概念

宏定义#define在编译预处理中起作用,行尾无需跟分号,最后跟“\”表示该行未结束,与下一行合起来。

 

#include,用<>,c语言标准头文件,在c系统中设置好的include文件夹;用“”,先到当前工作文件夹,再到include

 

结构体

struct student{

int num;

char name[10];

};

struct student s1;

struct student{

int num;

char name[10];

}s1,s2;

可以整体赋值 s1=s2;

指针 (*p).num或p->num

 

posted @ 2020-03-11 14:48  Cathycat  阅读(104)  评论(0编辑  收藏  举报