2020年2月4日

c连接mysql -demo

摘要: 参考:https://blog.csdn.net/u012206617/article/details/88960215 1. 下载mysql c客户端:https://cdn.mysql.com/archives/mysql-connector-c/mysql-connector-c-6.1.11 阅读全文

posted @ 2020-02-04 20:41 luckygxf 阅读(426) 评论(0) 推荐(0) 编辑

clion redis-demo

摘要: 1. github hiredis安装 redis-demo.c #include <stdio.h> #include <stdlib.h> #include <hiredis.h> int main(int argc, char **argv) { // if (argc < 3) { // p 阅读全文

posted @ 2020-02-04 18:03 luckygxf 阅读(368) 评论(0) 推荐(0) 编辑

log4c demo

摘要: #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include "log4c.h" int main(int argc, char** argv){ int rc = 0; log4c_category_t* m 阅读全文

posted @ 2020-02-04 17:07 luckygxf 阅读(206) 评论(0) 推荐(0) 编辑

c连接redis

摘要: 1. 安装启动redis 2. 安装redis c语言客户端 #include <stdio.h> #include <stdlib.h> #include <hiredis.h> int main(int argc, char **argv) { // if (argc < 3) { // pri 阅读全文

posted @ 2020-02-04 16:23 luckygxf 阅读(1270) 评论(0) 推荐(0) 编辑

1108. IP 地址无效化

摘要: char * defangIPaddr(char * address){ if (address == NULL) return NULL; int addressLength = strlen(address); char *res = malloc(addressLength + 7); cha 阅读全文

posted @ 2020-02-04 14:35 luckygxf 阅读(126) 评论(0) 推荐(0) 编辑

1295. 统计位数为偶数的数字

摘要: int findNumbers(int* nums, int numsSize){ if (nums == NULL) return 0; int res = 0; for (int i = 0; i < numsSize; i++) { int tempNum = nums[i]; int dig 阅读全文

posted @ 2020-02-04 14:19 luckygxf 阅读(156) 评论(0) 推荐(0) 编辑

导航