Question: how to fix the issue of incompatible types in assignment of 'std::string' {aka 'std::_ cxx11: basic_string '} to 'char [15]' Names comes from a const
![{aka 'std::_ cxx11: basic_string'} to 'char [15]' Names comes from a const](https://s3.amazonaws.com/si.experts.images/answers/2024/09/66da58b4beff4_58866da58b461281.jpg)
I/ Creating a struct for employees and customers struct Employee f int EmpId; char EmpName [Names] ; if ( type = ' e) 1/ reading data from the file cin id: cin name: employees[empCount]. EmpId = id: 11 assitsns the id of the employee employees[empCount]. EmpName = name; 11 assigna the name to the employee empCountt+: 1/ counts the number of employees
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
