What happens when you attempt to compile and run the following code?
#include
#include
using namespace std;
template
class A {
T_v;
public:
A() {}
A(T v): _v(v){}
T getV() { return _v; }
void add(T & a);
void add(string & a);
};
template
void A
void A
_v.insert(0, a);
}
int main()
{
A
string s(" world!");
a.add(s);
cout << a.getV() < return 0; }
Arlie
3 hours agoArlette
5 days agoTrinidad
10 days agoLuther
16 days agoRegenia
21 days agoLou
26 days agoDanica
1 month agoDahlia
1 month agoLatia
1 month agoTom
2 months agoRia
2 months agoLavina
3 months agoAsuncion
3 months agoJesusita
3 months agoWilson
3 months agoMelissa
3 months agoFelton
3 months agoLeota
4 months ago