求助大佬关于CodeBlocks调试时部分stl中的值无法正常显示的问题
如以下代码:
#include <iostream>
#include<vector>
#include<string>
#include<map>
using namespace std;
map<string,int> m;
vector<vector<int> >v;
vector<int>v1 = {1,2,3};
vector<int>v2 = {4,5,6};
int main()
{
v.push_back(v1);
v.push_back(v2);
cout << "Hello world!" << endl;
return 0;
}
调试时显示的结果是该二维vector显示的watches如下图所示:
如以下代码:
#include <iostream>
#include<vector>
#include<string>
#include<map>
using namespace std;
map<string,int> m;
vector<vector<int> >v;
vector<int>v1 = {1,2,3};
vector<int>v2 = {4,5,6};
int main()
{
v.push_back(v1);
v.push_back(v2);
cout << "Hello world!" << endl;
return 0;
}
调试时显示的结果是该二维vector显示的watches如下图所示: