Also, I see that you are using f and l Person name(f, l); before you actually get any values for f and l. This is very silly. You must get values first, and then use them.
int main(){
string f, l;
Person name();
cout << "Enter your First Name : ";
cin >> f;
//getline(cin, f);
cout << "Enter your Last Name : ";
cin >> l;
//getline(cin, l);
name.setFirstName(f);
name.setLastName(l);
name.print();
//system("pause"); a good compiler will pause it automatically, don't use system, theres a topic pinned in the beginner section, take a look. http://cplusplus.com/forum/beginner/1988/return 0;
}