updated for presentation
This commit is contained in:
+6
-5
@@ -1,6 +1,5 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
using namespace std;
|
||||
|
||||
struct Point {
|
||||
@@ -13,10 +12,12 @@ const vector<string> s = {"a", "b", "c"};
|
||||
int main() {
|
||||
string s1 {"first"};
|
||||
int x {42};
|
||||
map<string, vector<int>> singers = {
|
||||
{"Freddie Mercury", {100, 102, 103}},
|
||||
{"Matt Bellamy", {100, 104, 105}},
|
||||
};
|
||||
|
||||
vector<string> names_v = {"stephen", "michael", "bryan", "derek"};
|
||||
|
||||
// map example
|
||||
// with nested types
|
||||
|
||||
x = 0;
|
||||
return x;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user