fork download
  1. #include <iostream>
  2. struct Target {
  3. double heading = 0.0;
  4. double speed = 0.0;
  5. };
  6.  
  7. int main() {
  8. Target ship;
  9. std::cout << ship.heading << " " << ship.speed << std::endl;
  10. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
0 0