上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 54 下一页
摘要: https://www.zhihu.com/question/63201378 前置声明用处: 1.前置声明能够节省编译时间 2.在两个类相互引用时用前置声明 当然应当尽量避免这样设计,需要依赖倒置规避 3.前置声明,在写wrapper的时候,会发现是屏蔽内部宏定义的好方法 比如,需要写一个动态库, 阅读全文
posted @ 2022-11-30 15:31 sgggr 阅读(191) 评论(0) 推荐(0)
摘要: https://www.zhihu.com/question/270945429 首先.h和.cpp文件在编译器中是几乎一样不做区分的都是文件而已。 其次#include的作用就相当于把引入文件中的所有内容完整的复制到当前位置(就像ctrl+a,c,v)。 最后,#include的文件中的内容大多数 阅读全文
posted @ 2022-11-30 14:50 sgggr 阅读(386) 评论(0) 推荐(0)
摘要: 一、浮点数的比较 浮点数和整型数在计算机中表示的方式不相同,整型数能够直接比较相等,但是浮点数不能直接比较是否相等,如下: int main() { int n=0; float val=1.0, x1=1.9/2.1, y2=2.1/1.9; for(int i=0;i<21;++i) val * 阅读全文
posted @ 2022-11-26 15:35 sgggr 阅读(202) 评论(0) 推荐(0)
摘要: https://zhuanlan.zhihu.com/p/339632982?ivk_sa=1024320u 方法一: 在.deb文件夹下(应该是Downloads文件夹),双击.deb文件 方法二: 使用Gdebi应用程序来安装deb软件包及其依赖项 再提一次,如果事情总是进展顺利,生活可能会更简 阅读全文
posted @ 2022-11-23 22:53 sgggr 阅读(1612) 评论(0) 推荐(0)
摘要: Qt fromLocal8Bit()函数可以设置编码 Qt默认的编码是unicode。 windows默认使用(GBK/GB2312/GB18030) 使用fromLocal8Bit(),实现了从本地字符集GB到Unicode的转换,用于处理汉语显示乱码等问题。 static inline QStr 阅读全文
posted @ 2022-11-21 14:45 sgggr 阅读(947) 评论(0) 推荐(0)
摘要: 已剪辑自: https://support.microsoft.com/zh-cn/office/%E5%AE%89%E8%A3%85%E6%88%96%E9%87%8D%E6%96%B0%E5%AE%89%E8%A3%85-onenote-for-windows-c08068d8-b517-446 阅读全文
posted @ 2022-10-26 10:35 sgggr 阅读(212) 评论(0) 推荐(0)
摘要: 一、 阻止升级到win11-腾讯电脑管家官网![image] 二、 阅读全文
posted @ 2022-10-26 10:31 sgggr 阅读(80) 评论(0) 推荐(0)
摘要: @echo off pushd "%~dp0" dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt dir /b C:\Windows 阅读全文
posted @ 2022-10-26 10:07 sgggr 阅读(139) 评论(0) 推荐(0)
摘要: 已剪辑自: https://zhuanlan.zhihu.com/p/88142055![image] 阅读全文
posted @ 2022-10-26 09:34 sgggr 阅读(122) 评论(0) 推荐(0)
摘要: 转:https://www.bbsmax.com/A/o75N9waPJW/ 错误如图所示: 解决办法: (1)先用find命令找到bcompare所在位置: sudo find / -name '*bcompare' 我本机真实的是:/root/.config/bcompare (2)进入 /ho 阅读全文
posted @ 2022-10-19 15:43 sgggr 阅读(1217) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 54 下一页