本文整理汇总了C++中Person::GetSSN方法的典型用法代码示例。如果您正苦于以下问题:C++ Person::GetSSN方法的具体用法?C++ Person::GetSSN怎么用?C++ Person::GetSSN使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Person
的用法示例。
在下文中一共展示了Person::GetSSN方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UserInputVehicle
void UserInputVehicle(Person & aPerson, Vehicle & aVehicle)
{
string inData;
VMake * pVMake = new VMake;
Color * pColor = new Color;
VType * pVType = new VType;
aVehicle.SetSSN(aPerson.GetSSN());
//Setting these ensures display will behave
aVehicle.SetFound(true);
aVehicle.SetDeleted(false);
//Works much the same as Populating the Person class members
cout << "\n\n\t\tEnter new TAG : ";
getline(cin, inData);
cin.sync();
aVehicle.SetTag(Trim(inData));
system("clear");
cout << "\n\t\tNow Displaying Codes for: VMake";
pVMake->DisplayVMakes();
cout << "\n\n\t\tEnter VMake Code : ";
getline(cin, inData);
cin.sync();
aVehicle.SetVMakeCode(Trim(inData));
system("clear");
cout << "\n\t\tNow Displaying Codes for: VType";
pVType->DisplayVTypes();
cout << "\n\n\t\tEnter VType Code : ";
getline(cin, inData);
cin.sync();
aVehicle.SetVTypeCode(Trim(inData));
system("clear");
cout << "\n\t\tNow Displaying Codes for: Top Color";
pColor->DisplayColors();
cout << "\n\n\t\tEnter Top Color Code : ";
getline(cin, inData);
cin.sync();
aVehicle.SetTopColorCode(Trim(inData));
system("clear");
cout << "\n\t\tNow Displaying Codes for: Bottom Color";
pColor->DisplayColors();
cout << "\n\n\t\tEnter Bottom Color Code : ";
getline(cin, inData);
cin.sync();
aVehicle.SetBottomColorCode(Trim(inData));
delete pVMake;
delete pVType;
delete pColor;
}