Hi I am trying to use getline in order to read a name and surname and sore them in 1 variable.
The program is going over getline like it does not exist.What is the reason for this?
It should display name,read a value into it and then display salary?
void Vstore::addemployee(string name)
cout<<"Date "<<name<<" joined us? :"<<endl;
in main() I have
This is what happens when I run the program:
What would you like to do
1 Get an Employees Details
2 Add an amount to income
3 Add an amount to expenses
4 See current profit
5 Add an employee
Name? :Salary? :