摘要:
unsigned cnt = 10; string bad[cnt];//错误cnt不是常量表达式 constexpr unsigned cnt = 10; string bad[cnt];//正确 阅读全文
摘要:
#include <iostream>#include <vector>#include <string>using namespace std;using std::_Adjust_manually_vector_aligned;int main(){ vector<string> str; st 阅读全文
摘要:
#include <iostream>#include <vector>#include <string>using namespace std;using std::vector;int main(){ vector<string> arr; string str; vector<int> num 阅读全文