Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using std := cpp("WideLibrary/test.h").std;
- Main() {
- vec := std.vector!(sample)();
- vec.push_back(sample());
- vec.back().x = 65;
- vec.front().y = 66;
- std.cout << vec.back().t();
- std.cout << vec.back().t2();
- vec.back().t3();
- }
- type sample {
- x := int8();
- y := int8();
- t() {
- return x;
- }
- t2() {
- return this.y;
- }
- t3() {
- std.cout << t() << t2();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement