随笔分类 -  编程语言

摘要:需要在所有CC编译项后面加-fPIC 【-shared和-fPIC的编译问题】https://blog.csdn.net/rufanchen_/article/details/7198697 阅读全文
posted @ 2024-02-21 15:18 starc的miao 阅读(356) 评论(0) 推荐(0)
摘要:亲测有效-兼容性强 但是需要代码中间没有空格,其他的语法折叠方法兼容性若容易崩。 Code int found(int a[], int left, int right, int x) { while (left > 1; if (a[mid] <details> <summary>Code</su 阅读全文
posted @ 2024-01-24 09:25 starc的miao 阅读(7) 评论(0) 推荐(0)
摘要:【C语言atoi、atof、atol、atrtod,strtol和strtoul的汇总】https://blog.csdn.net/gdut2015go/article/details/46324339 阅读全文
posted @ 2024-01-23 17:36 starc的miao 阅读(15) 评论(0) 推荐(0)
摘要:strtok 字符串分段截取 https://www.runoob.com/cprogramming/c-function-strtok.html char *strtok(char *str, const char *delim) #include <string.h> #include <std 阅读全文
posted @ 2024-01-15 17:25 starc的miao 阅读(10) 评论(0) 推荐(0)
摘要:问题:C语言编程问题,incompatible type for argument 1 of '函数名' 解答:函数变量前加个引用符号 & 阅读全文
posted @ 2024-01-10 16:50 starc的miao 阅读(437) 评论(0) 推荐(0)
摘要:代码附近的花括号有问题 阅读全文
posted @ 2023-11-27 14:41 starc的miao 阅读(154) 评论(0) 推荐(0)
摘要:先写函数定义或者声明,然后才是调用函数 阅读全文
posted @ 2023-11-14 09:58 starc的miao 阅读(72) 评论(0) 推荐(0)
摘要:问题描述 解决C++中[Warning] deprecated conversion from string constant to 'char*' [-Wwrite-strings] char *string= "aaabbbcc"; //warning的原因是字符串常量存放在const内存区.. 阅读全文
posted @ 2023-10-05 14:03 starc的miao 阅读(769) 评论(0) 推荐(0)
摘要:[https://blog.csdn.net/whatday/article/details/89331652] 阅读全文
posted @ 2023-07-22 14:59 starc的miao 阅读(9) 评论(0) 推荐(0)
摘要:[https://blog.csdn.net/nyist_zxp/article/details/107890791] 阅读全文
posted @ 2023-07-22 14:58 starc的miao 阅读(6) 评论(0) 推荐(0)
摘要:【架构图、流程图、结构图、功能图、逻辑图】https://blog.csdn.net/chen978616649/article/details/121337044 阅读全文
posted @ 2023-03-20 15:15 starc的miao 阅读(25) 评论(0) 推荐(0)
摘要:【MVC架构模式详细说明】https://www.cnblogs.com/xiaxiaoshu/p/9073209.html 阅读全文
posted @ 2023-03-20 14:08 starc的miao 阅读(17) 评论(0) 推荐(0)
摘要:https://www.runoob.com/w3cnote/c-callback-function.html #include<stdio.h> int Callback_1(); int Callback_2(); int Callback_3(); int Handle(int (*Callb 阅读全文
posted @ 2022-11-21 03:29 starc的miao 阅读(20) 评论(0) 推荐(0)
摘要:/* Function:函数指针数组 */ #include <stdio.h> #include <stdlib.h> int func1(int n) { printf("func1: %d\n", n); return n; } int func2(int n) { printf("func2 阅读全文
posted @ 2022-11-21 03:28 starc的miao 阅读(23) 评论(0) 推荐(0)
摘要:/* Design Model:设计模式 Function:使用函数指针列表搭建程序框架 */ #include <stdio.h> #include <stdlib.h> int hello(int i); void hey(int i); int someother(void); void de 阅读全文
posted @ 2022-11-21 00:46 starc的miao 阅读(121) 评论(0) 推荐(0)
摘要:https://www.runoob.com/design-pattern/chain-of-responsibility-pattern.html 阅读全文
posted @ 2022-11-20 23:34 starc的miao 阅读(22) 评论(0) 推荐(0)
摘要:/* Linux API: function:C实现进度条 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define NUM 101 #define STYLE '*' #define MAX 100 void pro 阅读全文
posted @ 2022-11-20 16:55 starc的miao 阅读(56) 评论(0) 推荐(0)
摘要:#define assert(ignore) ((void)0) https://www.runoob.com/cprogramming/c-standard-library-assert-h.html 阅读全文
posted @ 2022-11-09 00:29 starc的miao 阅读(18) 评论(0) 推荐(0)
摘要:【维生素C语言】第十六章 - 文件操作(上) 【维生素C语言】第十六章 - 文件操作(下) 阅读全文
posted @ 2022-11-08 23:00 starc的miao 阅读(14) 评论(0) 推荐(0)
摘要:C语言方向: 1.用C语言编写一个函数,随机生成6个数字,分别用于6个抽奖小球,每个小球的数字不可重复。另外需要提供一个接口函数,可以设置抽奖小球的数字范围,比如设置范围[0, 20],则6个小球数字必须在0-20之内,且6个数字不能重复。 2. 用C语言编写一个简单的“Linux”文件浏览器,用于 阅读全文
posted @ 2022-10-15 15:41 starc的miao 阅读(76) 评论(0) 推荐(0)