cpp11/init.cc
2012-05-05 14:54:38 -06:00

22 lines
392 B
C++

#include <string>
#include <iostream>
using namespace std;
struct Point {
int x, y;
Point(int x, int y): x(x), y(y){}
};
// const vector<string> v = ??;
// http://stackoverflow.com/a/4268956
int main() {
string s1("first");
string s3 = string("again");
int x = int(42);
string s2 = "hello";
int y = 42;
cout << x << " " << y << " " << endl;
return 0;
}