上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 74 下一页
摘要: #include <stdlib.h> #include <iostream> #include <string> using namespace std; class Person { public: Person() { id = 0; name = nullptr; cout << "cons 阅读全文
posted @ 2021-10-25 21:14 邱明成 阅读(207) 评论(0) 推荐(0)
摘要: int main() { string t1("abcd"); string t2; // x, y指向的地址相同(字符串存放到常量区,看下方图示), 存放x, y本身的地址是不相同的, const char* x = "abcd"; const char* y = "abcd"; char des 阅读全文
posted @ 2021-10-25 11:34 邱明成 阅读(193) 评论(0) 推荐(0)
摘要: 在C++中,以下代码给出了编译器错误: void destruct1 (int * item) { item->~int(); } 这段代码几乎相同,我只是将int定义为另一种类型,并且发生了一些魔术: #include <iostream> using namespace std; typedef 阅读全文
posted @ 2021-10-25 10:08 邱明成 阅读(239) 评论(0) 推荐(0)
摘要: #include <malloc.h> #include <stdio.h> #include <iostream> #include <string> class Student { public: int id; std::string name; }; int main(int argc, c 阅读全文
posted @ 2021-10-25 09:51 邱明成 阅读(522) 评论(0) 推荐(0)
摘要: #include <string.h> #include <iostream> using namespace std; struct TestStruct { char *a{nullptr}; char *b{nullptr}; char *c{nullptr}; int id; }; int 阅读全文
posted @ 2021-10-20 19:59 邱明成 阅读(281) 评论(0) 推荐(0)
摘要: #include <iostream> #include <cassert> using namespace std; int main(int argc, char const* argv[]) { int a = 123; int b = 123; assert(a != b); cout << 阅读全文
posted @ 2021-10-18 15:45 邱明成 阅读(188) 评论(0) 推荐(0)
摘要: https://docs.microsoft.com/zh-cn/windows/wsl/troubleshooting 阅读全文
posted @ 2021-10-17 10:12 邱明成 阅读(42) 评论(0) 推荐(0)
摘要: 问题描述今天在写 C++ 代码的时候用上 C++11 的特性,然后发现 VSCode 虽然可以编译通过,但是会在相应位置报红,如下图所示。 并且在编译的时候遇到如下警告: C1.cpp:62:14: warning: 'auto' type specifier is a C++11 extensio 阅读全文
posted @ 2021-10-11 23:10 邱明成 阅读(1414) 评论(0) 推荐(0)
摘要: 设置 按下win键,直接搜索启用或关闭Windows功能 打开后,在弹框中选择 ”适用于linux的windows子系统“ 材料准备 【 LxRunOffline 】下载地址:https://github.com/DDoSolitary/LxRunOffline/releases (可以选择最新版本 阅读全文
posted @ 2021-10-10 14:57 邱明成 阅读(2272) 评论(0) 推荐(1)
摘要: PostgreSQL实现了四种执行策略:(1)PORTAL_ONE_SELECT:如果用户提交的SQL语句中仅包含一个SELECT类型查询,则查询执行器会使用执行器来处理该SQL语句。换句话说,这种策略用于处理仅有一个可优化原子操作的情况。(2)PORTAL_ONE_RETURNING(PORTAL 阅读全文
posted @ 2021-10-09 19:13 邱明成 阅读(296) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 74 下一页