一堆应该记住的概念

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

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

结构体

struct student{

int num;

char name[10];

};

struct student s1;

扫描二维码关注公众号,回复: 9757440 查看本文章

struct student{

int num;

char name[10];

}s1,s2;

可以整体赋值 s1=s2;

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

猜你喜欢

转载自www.cnblogs.com/Cathycat/p/12462357.html