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; }
Sherron
22 days agoGolda
27 days agoNorah
1 month agoFelicidad
1 month agoDorsey
1 month agoAdela
2 months agoMichal
2 months agoFanny
2 months agoIrving
2 months agoBecky
2 months agoRoxanne
2 months agoVincenza
3 months agoMalcolm
3 months agoFernanda
3 months ago