Advertisement
Guest User

Untitled

a guest
Apr 30th, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. using std := cpp("WideLibrary/test.h").std;
  2. Main() {
  3. vec := std.vector!(sample)();
  4. vec.push_back(sample());
  5. vec.back().x = 65;
  6. vec.front().y = 66;
  7. std.cout << vec.back().t();
  8. std.cout << vec.back().t2();
  9. vec.back().t3();
  10. }
  11. type sample {
  12. x := int8();
  13. y := int8();
  14. t() {
  15. return x;
  16. }
  17. t2() {
  18. return this.y;
  19. }
  20. t3() {
  21. std.cout << t() << t2();
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement