Which code, inserted at line 15, generates the output "5 Bob"?
#include
#include
using namespace std;
class B;
class A {
int age;
public:
A () { age=5; };
friend void Print(A &ob, B &so);
};
class B {
string name;
public:
B () { name="Bob"; };
//insert code here
};
void Print(A &ob, B &so) {
cout<
}
int main () {
A a;
B b;
Print(a,b);
return 0;
}
Jovita
11 months agoStarr
11 months agoArthur
11 months agoArthur
11 months agoSheldon
11 months agoStarr
1 years ago