:woeisthanos:

master
Caleb Fontenot 2024-03-25 20:54:27 +07:00
parent af8b33d561
commit 9c2d221338
5 changed files with 3 additions and 1 deletions

@ -38,3 +38,5 @@
354 399 1711416497182837945 lab4-Structures_CalebFontenot ed19375c3f47ed34
0 348 1711417298926466164 CMakeFiles/lab4-Structures_CalebFontenot.dir/structures.cpp.o f406e08b6d817e9f
348 422 1711417298998467564 lab4-Structures_CalebFontenot ed19375c3f47ed34
0 359 1711417885781864949 CMakeFiles/lab4-Structures_CalebFontenot.dir/structures.cpp.o f406e08b6d817e9f
359 416 1711417885837866036 lab4-Structures_CalebFontenot ed19375c3f47ed34

@ -67,7 +67,7 @@ void populate(Employee **pp, int rows, int col ) {
std::getline(std::cin, name);
printf("Enter salary for %s: ", name.c_str());
std::cin >> salary;
*(*(pp + i) + j) = *new Employee(const_cast<char*>(name.c_str()), salary);
pp[i][j] = *new Employee(const_cast<char*>(name.c_str()), salary);
}
}
}