qsort快排函数cmp用法总结 摘要:函数参数:qsort(s,n,sizeof(s[0]),cmp);int数组:int cmp(const void *a, const void *b){ return(*(int *)a…… 文章列表 2019年03月12日 0 点赞 0 评论 987 浏览 评分:8.2
c++中string类的简单介绍 摘要:#include "iostream" #include "string" using namespace std; /*@author:浅滩 *family:c++中string类的简单介绍…… 文章列表 2019年03月06日 0 点赞 0 评论 846 浏览 评分:0.0
实用不常用的字符串字符函数记录 摘要:统一头文件<ctype.h>字符串:strncpy(p, p1, n) 复制指定长度字符串 strcat(p, p1) 附加字符串 strncat(p, p1, n) 附加指定长度字符串 strcas…… 文章列表 2019年03月06日 0 点赞 0 评论 483 浏览 评分:0.0
向世界级C语言大师致敬。 摘要:个人原创!!!!#include int main() { printf(&((char)NULL)["www.如鹏网\0.com"]+((*"ru"-*"peng")<<SEEK_CUR…… 文章列表 2019年03月06日 1 点赞 0 评论 626 浏览 评分:0.0
史上最牛,访问数组元素,至少几十种访问数组元素的方式!! 摘要:个人原创,源代码:#include<stdio.h> int main(){ int a[5]={1,2,3,4,5}; printf("a[0]=%d\n",a[0]); printf("a…… 文章列表 2019年03月06日 3 点赞 0 评论 1096 浏览 评分:0.0
json格式的字符串转C语言结构体(二) 摘要:由于C语言中没有提供反射机制,所以实现起来,还是很有趣的有兴趣的可以私聊我交流群:599151072…… 文章列表 2019年03月06日 0 点赞 0 评论 1491 浏览 评分:0.0
变量当做数组访问,你见过吗? 摘要:据说对数组理解的比较深刻,才能明白。 #include<stdio.h> int main(void) { int a=100; int*p=&a; printf(…… 文章列表 2019年03月06日 2 点赞 0 评论 825 浏览 评分:0.0
准备连载一个谷歌工程师写的纯c的数据结构库,不知道有多少人感兴趣,有兴趣的可以留言 摘要: 使用标准C编写的通用的数据结构和常用算法的库, 它模仿STL的接口形式, 包括序列容器,关联容器,容器适配器,迭代器,函数,算法等.为C编程中的数据管理提供了方便易用的程序库。 个人QQ…… 文章列表 2019年03月06日 1 点赞 7 评论 645 浏览 评分:0.0
C语言结构体转json格式的字符串(一) 摘要:核心思想:将C语言结构体变量转化为json格式的字符串#include "s2j.h" #include <stdint.h> #include <stdio.h> //定义Studen…… 文章列表 2019年03月06日 6 点赞 0 评论 6580 浏览 评分:9.8
数组也是一种数据类型 摘要:在C语言中数组本质上也是一种数据类型,例如,int a[10],数组a的类型就是int [10]下面通过程序分析一下:#include<stdio.h> int main() { in…… 文章列表 2019年03月06日 1 点赞 2 评论 517 浏览 评分:0.0