What happens when you attempt to compile and run the following code? Choose all possible answers.
#include
using namespace std;
class C {
public:
int _c;
C():_c(0){}
C(int c) { _c = c;}
C operator+=(C & b) {
C tmp; tmp._c = _c+b._c;
return tmp;
} };
ostream & operator<<(ostream & c, const C & v) {
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 << a.getV() < return 0; }
Fausto
19 days agoLawana
1 months agoRoy
8 days agoFloyd
16 days agoEura
19 days agoEdwin
22 days agoKaran
1 months agoMertie
2 months agoTarra
18 days agoTarra
1 months agoTesha
2 months agoCiara
2 months agoJeniffer
2 months ago