
c++开发
m0_37876242
这个作者很懒,什么都没留下…
展开
-
rtpsession建立会话失败,报错-59
使用jrtplib创建session失败,返回错误码 -59;原创 2023-01-07 10:23:22 · 597 阅读 · 0 评论 -
vscode使用remote--ssh进行远程连接报错Resolver error: Error: Connecting with SSH timed out
vscode使用remote-ssh连接linux系统失败原创 2023-01-07 09:46:46 · 15909 阅读 · 9 评论 -
记一次使用settimeofday 修改系统时间遇到的问题;
修改系统时间遇到的问题其中的’-1900’和’-1’都是不能删除的,否则settimeofday 函数可能会执行失败;原创 2022-12-06 14:43:10 · 1144 阅读 · 0 评论 -
一种根据环境决定是中文输出英文输出的方式
一种根据环境决定是中文输出英文输出的方式。原创 2022-08-15 15:55:57 · 109 阅读 · 0 评论 -
c++ 条件变量使用例子
c++条件变量使用例子。原创 2022-07-19 16:55:09 · 281 阅读 · 0 评论 -
sql表优化
数据优化原创 2022-07-05 18:05:26 · 177 阅读 · 0 评论 -
读取二进制文件并显示内容
二进制文件内容:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 00 09 00 0B 00 11 00 0B 00 DD FF ED FF A0 00 67 01 B7 01 03 02 D7 02 34 04 8A 05 54 06 98 06 AE 06 EE 06 0A 07 77 06 1E 05 57 03 71 01 9原创 2022-05-12 16:04:13 · 363 阅读 · 0 评论 -
c++对指向NULL的指针进行操作会导致程序崩溃
代码://文件名称为test.cpp#include <stdio.h>int main(int argc, char* argv[]){ int* ptr = NULL; *ptr = 0; return 0;}使用指令: g++ test.cpp -o test运行结果:[root@localhost pcm2g711]# ./test 段错误(吐核)产生错误的原因是对指向为NULL的指针进行赋值;...原创 2022-04-22 10:33:48 · 1412 阅读 · 0 评论 -
c++中给string对象赋值null会导致程序崩溃
代码:#include <stdio.h>#include <string>int main(int argc, char* argv[]){ std::string str(NULL); return 0;}linux下运行结果:terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_M_construct null not v原创 2022-04-22 10:30:05 · 2335 阅读 · 0 评论