fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. struct stTest{
  6. unsigned int i;
  7. string str;
  8. stTest(unsigned int value = -1, std::string text = "Тікай з села. Тобі піздец"){
  9. this->i = value, this->str = text;
  10. };
  11. } test;
  12.  
  13. int main() {
  14. cout << test.i << '\n' << test.str.c_str() << '\n';
  15. stTest new_test(1202446, "Правки хуявки");
  16. cout << new_test.i << '\n' << new_test.str.c_str() << '\n';
  17. return 0;
  18. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
4294967295
Тікай з села. Тобі піздец
1202446
Правки хуявки