lnlidawei

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 48 下一页

2024年1月31日

摘要: [cpp]: thread -- with header <syncstream> 一、说明: 1、 【并发编程】thread编程中的同步输出: std::osyncstream // Defined in header <syncstream> 二、程序代码 1 #include <iostrea 阅读全文
posted @ 2024-01-31 14:10 lnlidawei 阅读(48) 评论(0) 推荐(0)

2024年1月29日

摘要: [cpp]: 常量字符串的声明(const char* const localeName = "zh_CN.utf-8") 一、说明 1、编译环境: g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.83.0-gcc-13.2.0/include -s 阅读全文
posted @ 2024-01-29 02:20 lnlidawei 阅读(29) 评论(0) 推荐(0)

2024年1月27日

摘要: [perl]: file -- read_file.pl 一、代码 1 #!/usr/bin/env perl 2 3 4 # file_name: read_file.pl 5 6 7 sub read_file 8 { 9 open(DATA, "$_[0]") or die "[ db.pl 阅读全文
posted @ 2024-01-27 13:00 lnlidawei 阅读(21) 评论(0) 推荐(0)

摘要: [perl]: perl to database ( MariaDB ) 一、说明 1、 暂无 二、源码 1 #!/usr/bin/perl -w 2 3 4 # file_name: db.pl 5 6 7 use strict; 8 use DBI; 9 10 sub database 11 { 阅读全文
posted @ 2024-01-27 12:31 lnlidawei 阅读(29) 评论(0) 推荐(0)

摘要: [perl] out() -- function 一、源码 1 #!/usr/bin/perl 2 3 # perl_file = xx.pl 4 5 # name: out() 6 # function: print all elements of array of input parameter 阅读全文
posted @ 2024-01-27 06:50 lnlidawei 阅读(23) 评论(0) 推荐(0)

2024年1月25日

摘要: [cpp]: c_string 类的实现(bug) 一、说明 1、当每个【c_string对象】到达自身的生命周期时,这个【c_string对象】为什么不调用自身的析构函数【 ~c_string() 】 ? 二、源程序 1 #include <iostream> 2 #include <string 阅读全文
posted @ 2024-01-25 06:31 lnlidawei 阅读(23) 评论(0) 推荐(0)

摘要: [cpp]: 【字符】和【ascii值】之间的转换 一、基础: 1、将【字符】转化为【ascii值】( char -> int ): 1 char c = '-' ; 2 3 // char -> int 4 int c_out = int(c) ; 2、将【ascii值】转化为【字符】( int 阅读全文
posted @ 2024-01-25 03:27 lnlidawei 阅读(565) 评论(0) 推荐(0)

摘要: [c][cpp]: c和cpp的命名规则(变量、函数、类、结构、枚举、共用) 一、说明:为了更好识别变量、函数、类、结构体,因此制定命名规则 1、全局变量的命名规则: g_<变量名> 2、函数的命名规则: f_<函数名> 3、【class(类)】的命名规则: c_<类名> 4.1、类的成员变量的命名 阅读全文
posted @ 2024-01-25 01:18 lnlidawei 阅读(380) 评论(0) 推荐(0)

2024年1月24日

摘要: [os]:linux 【系统调用的编号】- SYSCALL_NUMBER 一、基本说明 1、操作系统:fedora38 2、【系统调用的编号】所在路径和名称: [ /usr/include/asm-generic/unistd.h ] 二、系统调用编号的源码【文件路径和名称: /usr/includ 阅读全文
posted @ 2024-01-24 00:41 lnlidawei 阅读(286) 评论(0) 推荐(0)

2024年1月22日

摘要: [cpp][data_structure]: queue -- user defined( bug ) 一、示意 二、源代码中存在的问题 1、 有问题;在pop()中front指针设置有问题。 三、源码 1 #include <iostream> 2 #include <string> 3 4 5 阅读全文
posted @ 2024-01-22 03:14 lnlidawei 阅读(36) 评论(0) 推荐(0)

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 48 下一页