What will happen when you attempt to compile and run the following code? Choose all possible answers.
#include
using namespace std;
class B {};
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
Ab;
a.add(10);
cout << a.getV() < return 0; }
Amie
4 months agoCasey
4 months agoHassie
4 months agoTamra
4 months agoLorriane
5 months agoDaryl
5 months agoSerita
5 months ago