cpp11/loops.cc
2012-05-25 08:17:47 -06:00

32 lines
503 B
C++

#include <string>
#include <vector>
#include <map>
#include <iostream>
using namespace std;
const vector<string> mcquays = {
"stephen",
"michael",
"bryan",
"derek",
};
int main() {
// original with uint
// original with iterator
vector<int> nums = { 1, 2, 3, 4, 5 };
// fix so nums is 0, 1, 2 ...
map<string, int> age_for_mcquay = {
{"stephen", 31},
{"michael", 29},
{"bryan", 27},
{"derek", 21},
};
// map example:
}