I am trying to print out the 2 employees which one member contains a multidimensional array.
struct Employees{
string name;
double salary;
char skill[5][20];
};
void main(){
Employees Namn[3] = {
{ "Dawn", 120000, { "C#", "C++" } },
{ "John", 13456, { "Java", "C++" } }
};
for (int i = 0; i < 3; i++){
cout << Namn[i].name << "\t";
cout << Namn[i].salary;
cout << "\t";
for (int j = 0; j < 5; j++){
for (int k = 0; k < 20; k++){
cout << Namn[i].skill[j][k];
}
}
cout << endl;
}
}