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 X{

   private:

     int x;

   public:

     X(int x_ = 17):x(x_){std::cout << 3;}

     X& operator=(const X& kt) {

        if(this == &kt){

             x*=x;

             return *this;

        }

        x = kt.x * 2;

        std::cout << 'A' << 25 << x;

        return *this;

     }

};

int main1(int argc, char** argv){

   X x;

   X t;

   x = t; 

   x = x;

   t = t;    

   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!