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
10 months agoStarr
10 months agoArthur
10 months agoArthur
10 months agoSheldon
10 months agoStarr
12 months ago