mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-04-24 19:00:38 +08:00
update
This commit is contained in:
21
learn_class/modern_C++_30/container1/container.cpp
Normal file
21
learn_class/modern_C++_30/container1/container.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// Created by light on 19-12-16.
|
||||
//
|
||||
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include "output_container.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
map<int, int> mp{
|
||||
{1, 1}, {2, 4}, {3, 9}};
|
||||
cout << mp << endl;
|
||||
vector<vector<int>> vv{
|
||||
{1, 1}, {2, 4}, {3, 9}};
|
||||
cout << vv << endl;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user