24 lines
371 B
C++
24 lines
371 B
C++
#include <string>
|
|
#include <vector>
|
|
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};
|
|
|
|
vector<string> names_v = {"stephen", "michael", "bryan", "derek"};
|
|
|
|
// map example
|
|
// with nested types
|
|
|
|
x = 0;
|
|
return x;
|
|
}
|