✅ 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>
#include <string>
template <class A, class B, class C>
class ABC
{
private:
A m_a;
B m_b;
C m_c;
public:
ABC(const A& x, const B& y, const C& z)
: m_a(x), m_b(y), m_c(z)
{
}
A& ma() { return m_a; }
B& mb() { return m_b; }
C& mc() { return m_c; }
};
int main1()
{
ABC<int, std::string, int> abc1(95, "abcd", 18);
std::cout << "ABC:" << abc1.ma() << abc1.mb() << abc1.mc();
return 0;
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!