vector的迭代器存在一定隐患,以下几种方式会导致其迭代器失效 resize、reserve、insert、assign、push_back。 1.push_back导致迭代器失效
示例代码:
#include<vector>
#include <iostream>
using std::cout;
using std::endl;
using std:…
在一台旧电脑上装了深度系统,装了Qt,导入项目, build提示 clang找不到:
Project ERROR: Cannot run compiler clang. Output: /bin/sh: 1: clang: not found Maybe you forgot to setup the environment?
Error while parsing …