05 2022 档案

摘要:今天调试程序,发现C++ 数组值无法赋值,断点正常,调试内容就是不对; 反复查看20分钟发现bug 如下(伪代码): int a[2] = {0}; if(con1 true) { a[0] == 100; } else { a[1] == 100; } 错误原因: 将赋值语句多写一个等号变成判断语 阅读全文
posted @ 2022-05-30 21:12 小小林林 阅读(22) 评论(0) 推荐(0) 编辑
摘要:参考连接:Xbox 360 和 Microsof Windows 的无锁编程注意事项 - Win32 apps | Microsoft Docs 在所有新式处理器上,可以假定自然对齐的本机类型的读取和写入是原子的。 只要内存总线的宽度至少与读取或写入的类型一样宽,CPU 会在单个总线事务中读取和写入 阅读全文
posted @ 2022-05-26 11:47 小小林林 阅读(23) 评论(0) 推荐(0) 编辑
摘要:1 #include <iostream> 2 #include <string> 3 4 using namespace std; 5 6 class Base 7 { 8 public: 9 Base() 10 { 11 name = "base"; 12 } 13 Base(string na 阅读全文
posted @ 2022-05-21 11:06 小小林林 阅读(213) 评论(0) 推荐(0) 编辑
摘要:参见微软官方教程: 在 Visual Studio 中创建 C/C++ DLL | Microsoft Docs 演练:创建并使用静态库 (C++) | Microsoft Docs VS2017 创建和使用具有导出项的动态链接DLL库_雪易的博客-CSDN博客_具有导出项的动态链接库 添加库路径设 阅读全文
posted @ 2022-05-14 09:30 小小林林 阅读(341) 评论(0) 推荐(0) 编辑
摘要:1 #include <iostream> 2 #include <vector> 3 4 using namespace std; 5 6 int main() 7 { 8 vector<string> aa; 9 aa.push_back("A"); 10 aa.push_back("B"); 阅读全文
posted @ 2022-05-09 16:03 小小林林 阅读(28) 评论(0) 推荐(0) 编辑
摘要:转自:编程最顶的八句格言! - 知乎 (zhihu.com) 格言一:“All problems in computer science can be solved by another level of indirection” 解读:“计算机科学中的所有问题都可以通过增加一个间接层来解决”,出自 阅读全文
posted @ 2022-05-09 11:35 小小林林 阅读(395) 评论(0) 推荐(0) 编辑
摘要:“计算机科学领域的任何问题都可以通过增加一个间接的中间层来解决” “Any problem in computer science can be solved by anther layer of indirection.” ——David Wheeler(剑桥大学计算机科学教授) 1 #inclu 阅读全文
posted @ 2022-05-09 11:31 小小林林 阅读(75) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示