fork download
  1. #include <string>
  2. struct Simple
  3. {
  4. int weight;
  5. std::string name;
  6. float power;
  7. };
  8.  
  9. int main() {
  10. Simple s1 = { 4, "bill", 3.1f };
  11. Simple s2 { 4, "bill", 3.1f };
  12. }
Success #stdin #stdout 0s 2980KB
stdin
Standard input is empty
stdout
Standard output is empty