What will happen when you attempt to compile and run the following code?
#include
using namespace std;
class C {};
template
class A {
T_v;
public:
A() {}
A(T v): _v(v){}
T getV() { return _v; }
void add(T a) { _v+=a; }
};
int main()
{
A
A
a.add(C());
cout << b.getV() < return 0; }
Harley
10 months agoJulio
10 months agoLuis
10 months agoShay
11 months agoMarti
11 months agoCallie
11 months agoTess
11 months agoFlorinda
11 months agoCorrina
11 months agoJaclyn
11 months ago