fork download
  1. struct Vector2 {
  2. Vector2(int, int) {}
  3. };
  4.  
  5. struct thingy {
  6. Vector2 position;
  7.  
  8. thingy(int first, int second) //thingy constructor
  9. :position(first, second) //construct the Vector2
  10. {}
  11. };
  12.  
  13. int main() {
  14. thingy a(0, 1);
  15. }
Success #stdin #stdout 0.02s 2676KB
stdin
Standard input is empty
stdout
Standard output is empty