随笔分类 -  C

摘要:原文链接:https://blog.csdn.net/qie_wei/article/details/81135920 关于sort函数中的cmp函数有着不同的写法,以刚刚的整形元素比较为例还有人是这么写的: 1 bool cmp(const int &a, const int &b){ 2 ret 阅读全文
posted @ 2019-07-01 17:29 喵喵队立大功 阅读(490) 评论(0) 推荐(0)
摘要:原文链接:https://blog.csdn.net/lee514/article/details/82940859 strlen( )strlen( )求得的是字符串的长度 例如字符串 str[20]= {“abcd”}; strlen(str),结果为4 sizeof( )sizeof( )计算 阅读全文
posted @ 2019-04-19 14:41 喵喵队立大功 阅读(143) 评论(0) 推荐(0)
摘要:转载来源:https://www.cnblogs.com/qyaizs/articles/2039101.html 分三块来讲述: 1 首先://注意在C和C++里不同 在C中定义一个结构体类型要用typedef: typedef struct Student { int a; }Stu; 于是在声 阅读全文
posted @ 2019-04-03 16:38 喵喵队立大功 阅读(290) 评论(0) 推荐(0)