For example Im trying to make the user input his name, last name, and salary and then make it display " First Name is" followed by what they put in as their first name "Last Name is" followed by what he put as his last name... and now im getting all sorts of errors
Fairly new to this so any information would be greatly appreciated
Thanks for your time.
#include <iostream>
int main()
{
string firstName;
string lastName;
int salary;
std::cout << "Enter First Name, Last Name, Salary";
std::cin >> firstName >> lastName >> salary;
std::cout << "\nFirst Name is " << firstName;
std::cout << "\nLast Name is " << lastName;
std::cout << "\nSalary is " << salary;
return 0;
}