added a bunch of exmaples and some notes
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
using namespace std;
|
||||
|
||||
struct Point {
|
||||
int x, y;
|
||||
Point(int x, int y): x{x}, y{y}{}
|
||||
};
|
||||
|
||||
const vector<string> s = {"a", "b", "c"};
|
||||
|
||||
int main() {
|
||||
string s1 {"first"};
|
||||
int x {42};
|
||||
map<string, int> singers = {
|
||||
{"Freddie Mercury", 100},
|
||||
{"Matt Bellamy", 100},
|
||||
};
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user