会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FredGrit
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
86
87
88
89
90
91
92
93
94
···
120
下一页
2021年12月1日
C++ connection mysql and retrieve select sql result
摘要: 1.Install mysqlconnector for c++ via executing below cmd; sudo apt-get install libmysqlcppconn-dev 2. #include <iostream> #include <stdlib.h> #include
阅读全文
posted @ 2021-12-01 14:31 FredGrit
阅读(49)
评论(0)
推荐(0)
2021年11月29日
C list folder files and only show regular file
摘要: #include <stdio.h> #include <stdlib.h> #include <uuid/uuid.h> #include <string.h> #include <dirent.h> #include <limits.h> #include <sys/types.h> #incl
阅读全文
posted @ 2021-11-29 12:18 FredGrit
阅读(36)
评论(0)
推荐(0)
C pass array as pointer,pass array as parameter
摘要: void arrayP11() { int arr[100]; for(int i=0;i<100;i++) { arr[i]=i*i*i*i; } printArray10(arr,100); } void printArray10(int *p,int arrSize) { for(int i=
阅读全文
posted @ 2021-11-29 10:09 FredGrit
阅读(44)
评论(0)
推荐(0)
2021年11月28日
c convert char pointer and char array interactively via strcpy
摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> #include <uuid/uuid.h> void chArrayToCharP6() { char chArr[110]="4dec892c-c083-4515-9966-9e
阅读全文
posted @ 2021-11-28 17:44 FredGrit
阅读(28)
评论(0)
推荐(0)
C FILE fopen fputs strcat, write content to file via FILE;
摘要: #include <stdio.h> #include <stdlib.h> #include <uuid/uuid.h> #include <string.h> void retrieveUuidVia(char *uuidValue) { uuid_t newUUID; uuid_generat
阅读全文
posted @ 2021-11-28 13:13 FredGrit
阅读(43)
评论(0)
推荐(0)
2021年11月26日
C pthread pass struct parameter
摘要: #include <stdio.h> #include <stdlib.h> #include <uuid/uuid.h> #include <string.h> #include <pthread.h> #include <time.h> #include <unistd.h> struct Bo
阅读全文
posted @ 2021-11-26 10:13 FredGrit
阅读(32)
评论(0)
推荐(0)
C multi thread via pthread include pthread_create,pthread_join methods
摘要: #include <stdio.h> #include <stdlib.h> #include <uuid/uuid.h> #include <string.h> #include <pthread.h> void *pMsg3(void *ptr); void pthread8(); int ma
阅读全文
posted @ 2021-11-26 09:31 FredGrit
阅读(43)
评论(0)
推荐(0)
2021年11月25日
c prepend char * and fputs into file
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <uuid/uuid.h> #include <unistd.h> void retrieveUuid2(); void file3(); int main() {
阅读全文
posted @ 2021-11-25 17:33 FredGrit
阅读(34)
评论(0)
推荐(0)
2021年11月22日
c types size via sizeof() method
摘要: #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <uuid/uuid.h> #include <string.h> #include <stdbool.h> void typesSize(); int main(
阅读全文
posted @ 2021-11-22 09:17 FredGrit
阅读(33)
评论(0)
推荐(0)
2021年11月21日
C recursion method as Fibonacci
摘要: struct mapStruct { int key; unsigned long long value; }; static struct mapStruct arr[1000]; unsigned long long fab(unsigned long long x); void fab13()
阅读全文
posted @ 2021-11-21 23:59 FredGrit
阅读(31)
评论(0)
推荐(0)
上一页
1
···
86
87
88
89
90
91
92
93
94
···
120
下一页
公告