创建一个const的引用,const_cast用于移除const属性。
AI系列2:ChatGPT介绍
全称是Chat Generative Pre-trained Transformer,OpenAI开发的聊天机器人,于2022年11月30日推出。 2023年3月12日,OpenAI发布多模态模型GPT-4 2023年10月,新增了DALLE-3图像生成功能 2023年11月,推出新模型 GPT-4 Turbo 类似产品: 2023年2月,谷歌推出类似于ChatGPT的对话人工智能...
排行榜系列2:编程语言排行
https://www.tiobe.com/tiobe-index/ 2023年12月情况:Python第一,C第2,C++第3,JS第6,PHP第7,Go第13
Qt官方示例解析系列7:Fortune Server and Client
这个示例与上一个类似,只是使用了QTcpServer和 QTcpSocket 服务端 用到了 QTcpServer QTcpServer::newConnection信号收到后,就 tcpServer->nextPendingConnection();发送数据,最后disconnectFromHost(); 其它: Qt::TextBrowserInteraction 的作用是允许...
git系列2:删除远程无效分支
有些分支在远端其实早就被删除了,但是在你本地依然可以看见这些被删除的分支。 清理远端不需要的分支: git remote prune origin
C++系列2:宏定义时#(井号)和##(双井号)的作用
#表示将其后的内容转换为字符串,即加上双引号。 #define example(instr) printf("the input string is:%s",#instr) #define example1(instr) #instr 当使用该宏定义时: example(abc); 在编译时将会展开成:printf("the input string is:%s","abc"); str...
Qt官方示例解析系列6:Local Fortune Server and Client
实现了什么功能 客户端 用到的知识点 使用了QDialogButtonBox,一个作为ActionRole,一个作为RejectRole, QLocalServer为服务端, QLocalSocket是客户端。 部分源码解析 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);//会在标题栏添加一...
开源软件推荐系列10:OBS
可录屏,可推流 https://obsproject.com/ 源码:https://github.com/obsproject/obs-studio
开源软件推荐系列9:7zip解压缩
https://www.7-zip.org/ 源码:https://github.com/ip7z/7zip
开源软件推荐系列8:VLC播放器
开源跨平台播放器 https://www.videolan.org/vlc/ https://www.videolan.org/developers/vlc.html 源码: https://wiki.videolan.org/VLC_Source_code/ https://code.videolan.org/videolan/vlc