Can someone please correct this code for me, so it can produce the correct output. The code is to display the name of the patient, the doctor that treated him/her, the room where he/she was treated.
#include <iostream>
using namespace std;
int main()
{
string bisi[3][4] = {{" ", "DOCTOR 1", "DOCTOR 2", "DOCTOR 3"},
{"ROOM 1", "AFUAH", "ARABA", "JOHNSON"},
{"ROOM 2", "BENJAMIN", "KOROMA", "CHELSEA"}};
for (int row=0; row<3; row++){
for (int col=0; col<4; col++){
cout<<bisi [row][col]<<" "; /*I get error on this line.The angle bracket "<<" Error Message: No operator matches this operand.*/
}
cout<<endl;
}
return 0;
}
bisiis supposed to mean please (and what their relation ship should be). Perhaps show us the output you want to see.class Doctor,class Patient, ...