fork download
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. class Input
  6. {
  7. public:
  8. Input(){
  9. cout << "constr...Input" << endl;
  10. }
  11. int x=2;
  12. };
  13.  
  14. class MainForm
  15. {
  16. Input m_I;
  17. public:
  18. MainForm()
  19. {
  20. Input m_I = Input();
  21. cout << dec << m_I.x << endl; /// вызов в формате m_I.x идёт по всем файлам и коду ИС. Что не совместимо с указателем в поле
  22. }
  23.  
  24. };
  25.  
  26. int main() {
  27. MainForm *frm1 = new MainForm;
  28. return 0;
  29. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
constr...Input
constr...Input
2