2021年5月6日
《C++学习笔记》目录。 开始编写时间:2021年1月15日 结束编写时间:NULL 参考书籍:《C++ Primer 中文第5版》 C++的优点:可靠性,通用性……
阅读全文
2021年2月11日
Containers array 头文件:#include <> bitset 头文件:#include <bitset> 构造 1 2 3 std::bitset<16> foo; std::bitset<16> bar (0xfa2); std::bitset<16> baz (std::string("0101111001")); 访问bitset operator[] :返回pos的位(bool)[不执行边……
阅读全文
2021年1月16日
文件操作API 文件读写 fgetc fputc 按字符读写文件 fputs fgets 按行读写文件(读写配置) fread fwrite 按块读文件(大文件迁移) fprintf 格式化读写文件 文件控制 FILE *fopen(char *filename, char *type) 打开文件 返……
阅读全文
2021年1月16日
内存 数据类型–更好的内存管理 数据类型:固定大小内存的别名 typedef 结构体的别名 typedef struct Student MyStudent 给指针起别名 typedef char * PCHAR 给变量起别名 typedef longlong mylong_t 注意: voi……
阅读全文
2020年9月17日
1. C语言 标准入门C语言模板 特点: 单文件、人机交互或者计算、一般是有结束的 编程软件:vs devc++ gcc等等 1 2 3 4 5 6 7 #include <stdio.h> int main() { //执行的操作 return 0;……
阅读全文
2020年9月8日
在lua里调用CSDK里的函数步骤 首先需要在\app\elua\modules\include\ auxmods.h中声明模块名字和模块初始化……
阅读全文
2020年7月12日
Lua是一个简单轻量的脚本语言,例子来自Lua官方的小例子,全部学会就会用啦 – Example 1 – Helloworld 用print就可以打印啦 1 2 3 4 5 6 7 8 9 -- Classic hello program. print("helloworld") --------……
阅读全文
2020年7月10日
网络编程和套接字 TCP/IP协议族 应用层 HTTP FTP DNS NFS 传输层 TCP UDP 网络层 IP ARP RARP ICMP 数据链路层 Ethernet UDP 格式:8B UDP报头,0~65527B 数据 头部格式:源……
阅读全文
2020年6月15日
正则表达式 语法规则 行定位符 “^“表示行的开始 “$“表示行的结尾 单词定界符 \b \B 查找一个完整的单……
阅读全文
2020年6月8日
helloworld 1 2 3 4 5 6 7 #include <stdio.h> int main() { printf("Helloworld!\n"); return 0; } 1 2 3 4 5 6 7 func arraySum(x [3]int) int{ sum := 0 for _, v := range x{ sum = sum + v } return sum } hugo 创建新文件 hugo new post/filename.md……
阅读全文