Is this correct? I didn't get any errors or exceptions in debug. I'm just wondering if this is correct usage pf pointers? I had to check a tutorial and I haven't really programmed much in a long time, any feedback would be appreciated!Code:employee * create()
{
employee * _newemployee;
string input1;
string input2;
cout << "Please enter the new employee's name: ";
getline(cin, input1);
cout << "Please enter the new employee's payrate: ";
getline(cin, input2);
_newemployee = new employee(input1, input2);
return _newemployee;
}