fork(2) download
  1. #include <iostream>
  2. #include <array>
  3. using namespace std;
  4.  
  5. struct foo {
  6. array<double,3> a;
  7. foo(double x, double y, double z) : a({x, y, z}) {}
  8. };
  9.  
  10. int main() {
  11. foo f(2, 5, 8);
  12. cerr << f.a[0] << " " << f.a[1] << " " << f.a[2] << endl;
  13. return 0;
  14. }
Success #stdin #stdout #stderr 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
2 5 8