会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FredGrit
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
87
88
89
90
91
92
93
94
95
···
120
下一页
2021年11月21日
c retrieve file's full name or absolute path via realpath method
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> void realpath9(); int main() { realpath9(); } void realpath9() { char *
阅读全文
posted @ 2021-11-21 23:51 FredGrit
阅读(43)
评论(0)
推荐(0)
2021年11月20日
c macros include __DATE__,__TIME__,__FILE__,__LINE__,__STDC__
摘要: void macro10() { printf("__DATA__=%s\n",__DATE__); printf("__TIME__=%s\n",__TIME__); printf("__FILE__=%s\n",__FILE__); printf("__LINE__=%d\n",__LINE__
阅读全文
posted @ 2021-11-20 17:52 FredGrit
阅读(32)
评论(0)
推荐(0)
c write file with char * and read file line by line based on FILE
摘要: #include <stdio.h> #include <stdlib.h> #include <uuid/uuid.h> #include <string.h> void retrieveUuid(char *uuidValue) { uuid_t newUUID; uuid_generate(n
阅读全文
posted @ 2021-11-20 17:22 FredGrit
阅读(33)
评论(0)
推荐(0)
c struct struct array,pointer,uuid,memcpy
摘要: #include <stdio.h> #include <stdlib.h> #include <uuid/uuid.h> #include <string.h> void retrieveUuid(char *uuidValue) { uuid_t newUUID; uuid_generate(n
阅读全文
posted @ 2021-11-20 11:30 FredGrit
阅读(63)
评论(0)
推荐(0)
2021年11月17日
c retrieve char * array pointer and display array value via array pointer
摘要: #include <stdio.h> #include <stdlib.h> #include <uuid/uuid.h> void retrieveUuid(char *uuidValue); char ** array4(); void arrayPointer5(); int main() {
阅读全文
posted @ 2021-11-17 17:28 FredGrit
阅读(31)
评论(0)
推荐(0)
2021年11月16日
c array convert to pointer and convert pointer to array
摘要: //Convert array to pointer int* arrayPointer7() { static int arr[100]; for(int i=0;i<100;i++) { arr[i]=i*i*i*i; } int *p; p=arr; } //retrieve array da
阅读全文
posted @ 2021-11-16 18:01 FredGrit
阅读(40)
评论(0)
推荐(0)
2021年11月15日
C Struct with char * str filed and fill struct array
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <uuid/uuid.h> void retrieveUuid(char *uuidValue); struct uuidStruct { int id; char
阅读全文
posted @ 2021-11-15 10:04 FredGrit
阅读(33)
评论(0)
推荐(0)
c get char * str size via strlen() function and convert char *str to char array
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { charPointerToCharArray(); return 0; } void charPointerToCharArray() { char *st
阅读全文
posted @ 2021-11-15 09:16 FredGrit
阅读(57)
评论(0)
推荐(0)
2021年11月14日
c struct with char * field to compose struct array
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <uuid/uuid.h> 5 6 void retrieveUuid(char *uuidValue); 7 8 struct bookStruc
阅读全文
posted @ 2021-11-14 21:58 FredGrit
阅读(39)
评论(0)
推荐(0)
2021年10月24日
C++ execute linux cmd and retrieve the output
摘要: #include <iostream>#include <stdlib.h>#include <stdio.h>#include <vector>#include <stdexcept>#include <string>#include <sstream>#include <algorithm> v
阅读全文
posted @ 2021-10-24 21:13 FredGrit
阅读(110)
评论(0)
推荐(0)
上一页
1
···
87
88
89
90
91
92
93
94
95
···
120
下一页
公告