fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Hoge{
  5. int a;
  6. double b;
  7. char *c;
  8. explicit Hoge(int _a, double _b, char *_c) : a(_a), b(_b), c(_c) {}
  9. };
  10.  
  11. Hoge foo(){
  12. return Hoge{42, 3.14, "Hello"};
  13. }
  14.  
  15. Hoge h[] = {Hoge{1, 1.0, ""}, Hoge{2, 2.0, ""}};
  16.  
  17. int main() {
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5436KB
stdin
Standard input is empty
stdout
Standard output is empty