本文整理汇总了C++中Person::Show方法的典型用法代码示例。如果您正苦于以下问题:C++ Person::Show方法的具体用法?C++ Person::Show怎么用?C++ Person::Show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Person
的用法示例。
在下文中一共展示了Person::Show方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
void main(){
Person one; // use default constructor
Person two("Smythecraft"); // use #2 with one default argument _ lname
Person three("Dimwiddy", "Sam"); // use #2, no defaults _lname &fname
one.Show();
cout << endl;
one.FormalShow();
cout << endl;
two.Show();
cout << endl;
two.FormalShow();
cout << endl;
three.Show();
cout << endl;
three.FormalShow();
cout << endl;
system("Pause");
}
示例2: main
int main(void)
{
Person one;
Person two("Smythecraft");
Person three("Dimwiddy", "Sam");
one.Show();
one.FormalShow();
cout<<endl;
two.Show();
two.FormalShow();
cout<<endl;
three.Show();
three.FormalShow();
cout<<endl;
return 0;
}
示例3: main
int main() {
Person a;
Person b("Omar");
Person c("Magdy", "Maged");
a.Show();
cout << endl;
a.FormalShow();
cout << endl << endl;
b.Show();
cout << endl;
b.FormalShow();
cout << endl << endl;
c.Show();
cout << endl;
c.FormalShow();
cout << endl << endl;
system("pause");
return 0;
}
示例4: main
int main() {
Person one;
Person two("Smythecraft"); // use #2 with one default argument
Person three("Dimwiddy", "Sam"); // use #2, no defaults
one.Show();
cout << endl;
one.FormalShow();
cout << endl;
two.Show();
cout << endl;
two.FormalShow();
cout << endl;
three.Show();
cout << endl;
three.FormalShow();
cout << endl;
system("pause");
return 0;
}
示例5: Show
virtual void Show() {
m_component->Show();
}