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