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:

     void teX(int x = 49) { this->x = x; }

     int ksX() { return x; }

};

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

   X x[3];

   x[0].teX(3);

   x[1].teX(3 + x[0].ksX());

   x[2].teX(47 * x[1].ksX());

   std::cout << x[1].ksX();

   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!