2020年4月19日

字符串的两种表示

摘要: 单个字符单引号表示或是整个字符串双引号表示。例如: char greeting[6]={'H','e','l','l','o','\0'}; char greeting[]="hello" 注意字符串都以\0结束 int main(int argc, int * argc[])这个是main 函数原 阅读全文

posted @ 2020-04-19 11:00 滴水石川的小白 阅读(1095) 评论(0) 推荐(0)

typedef 和#define的区别

摘要: typedef给类型取别名,用;结束, #define 只是简单的宏替换,为预编译处理指令。 #define pint int* typedef int * Pint; const pint a,b; const PRINT a,b; 对比二者区别 1) #define是预处理指令,在编译预处理时进 阅读全文

posted @ 2020-04-19 07:36 滴水石川的小白 阅读(191) 评论(0) 推荐(0)

导航