estructura c 2b 2b

Solutions on MaxInterview for estructura c 2b 2b by the best coders in the world

showing results for - "estructura c 2b 2b"
Jefferson
13 Oct 2020
1struct Par 
2{
3    int a, b;
4    // constructor base
5    Par() { a = b = 0; }
6    // destructor base
7    ~Par() { cout << "hecho..." << endl; }
8    void setA(int n) { a = n; }
9    void setB(int n) { b = n; }
10    void mostrar() 
11    {
12        cout << "a = " << a << ", b = " << b << "; suma = " << a+b << endl;
13    }
14};
queries leading to this page
estructura c 2b 2bestructura c 2b 2b