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; }
Vilma
28 days agoTijuana
1 months agoMerissa
1 months agoEmiko
1 days agoSharita
6 days agoAdell
14 days agoMichal
1 months agoMirta
1 months agoAlva
1 months agoKing
1 months agoLigia
1 months agoAmos
2 months agoJeanice
1 months agoLinsey
2 months agoSommer
2 months ago