✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Що буде виведено в результаті виконання коду?
Введіть відповідь точно так, як її виведе програма, без додаткових пробілів.
#include <iostream>
#include <vector>
using namespace std;
class Driver{public:string id; Driver(string x):id(x){} }; class Bus{Driver* d; public:Bus(Driver* x):d(x){} void show(){cout<<d->id;} };
int main(){
Driver d("D1"); Bus b(&d); b.show();
return 0;
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!