logo

Crowdly

#define main1 main /** Klausimas   Ką atspausdins programa? Jeigu programa nes...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

#define main1 main

/** Klausimas  

Ką atspausdins programa? Jeigu programa nesikompiliuoja, rašykite ERROR į atsakymo langelį.

*/

    #include <iostream>

    class A

    {

      public:

      A() : v(7) {}

      A(int v_) : v(v_+4) {}

      A (const A& a) : v(a.v + 32) {}

      int v;

    };

    int main1(int argc, char** argv)

    {

      const A a1;

      const A a2(10);

      const A a3 = a2;

      std::cout << a1.v << '*' << a2.v << '*' << a3.v << std::endl;

      return 0;

    }

More questions like this

Want instant access to all verified answers on emokymai.vu.lt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!