本文整理汇总了C++中Person::FormalShow方法的典型用法代码示例。如果您正苦于以下问题:C++ Person::FormalShow方法的具体用法?C++ Person::FormalShow怎么用?C++ Person::FormalShow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Person
的用法示例。
在下文中一共展示了Person::FormalShow方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
void main ()
{
Person one;
Person two ("elhady");
Person three ("elhady" , "yousif");
one.Show();
one.FormalShow();
cout <<endl;
two.Show();
two.FormalShow();
cout <<endl;
three.Show();
three.FormalShow();
system("pause");
}
示例2: main
int main(void) {
using std::cout;
using std::endl;
Person one;
Person two("Smythecraft");
Person three("Potter", "Harry");
// Person one
cout << "Person One:\n";
one.Show();
cout << endl;
one.FormalShow();
cout << "\n\n";
// Person two
cout << "Person Two:\n";
two.Show();
cout << endl;
two.FormalShow();
cout << "\n\n";
// Person three
cout << "Person Three:\n";
three.Show();
cout << endl;
three.FormalShow();
cout << "\n\n";
return 0;
}
示例3: main
void main ()
{
Person one;
Person two("Smythecraft");
Person three("Dimwiddy", "Sam");
cout << "First object: " << endl;
cout << "Name Surname: " << endl;
one.Show();
cout << "Surname, name" << endl;
one.FormalShow();
cout << endl;
cout << "Second object: " << endl;
cout << "Name Surname: " << endl;
two.Show();
cout << "Surname, name" << endl;
two.FormalShow();
cout << endl;
cout << "Third object: " << endl;
cout << "Name Surname: " << endl;
three.Show();
cout << "Surname, name" << endl;
three.FormalShow();
cout << endl;
system("pause");
}
示例4: main
int main() {
Person one;
Person two("Smythecraft");
Person three("Dimwiddy", "Sam");
one.Show();
cout << endl;
one.FormalShow();
return 0;
}
示例5: main
void main()
{
Person l ("ahmed" ,"magdy");
l.Show();
cout<<endl;
l.FormalShow();
cout<<endl;
Person d;
d.Show();
}
示例6: main
void main ()
{
Person x;
Person y("Nabil");
Person z("Nabil","Diana");
x.Show();
y.Show();
z.Show();
x.FormalShow();
y.FormalShow();
z.FormalShow();
}
示例7: main
void main()
{
Person a;
Person c("Sarah");
Person b("Sarah","Safwat");
a.Show();
a.FormalShow();
b.Show();
b.FormalShow();
c.Show();
c.FormalShow();
};
示例8: main
int main()
{
Person one;
Person two("Smythe");
Person three("Dimwiddy", "Sam");
one.Show();
one.FormalShow();
two.Show();
two.FormalShow();
three.Show();
three.FormalShow();
return 0;
}
示例9: main
int main()
{
using namespace std;
string ln;
char fn[25];
cout << "Please enter your first name: ";
cin.getline(fn, 25);
cout << "Please enter your last name: ";
getline(cin, ln);
Person user = Person(ln, fn);
user.Show();
user.FormalShow();
return 0;
}
示例10: main
int main()
{
using namespace std;
Person one; // use default constructor
Person two("Smythecraft"); // use #2 with one default argument
Person three("Dimwiddy", "Sam"); // use #2, no defaults
one.Show();
cout << endl;
one.FormalShow();
two.FormalShow();
two.Show();
three.FormalShow();
three.Show();
return 0;
}
示例11: main
void main() {
Person one; // use default constructor
Person two("Smythecraft"); // use #2 with one default argument
Person three("Dimwiddy", "Sam"); // use #2, no defaults
one.Show();
cout << endl;
one.FormalShow();
// etc. for two and three
two.Show();
two.FormalShow();
cout << endl;
three.Show();
three.FormalShow();
cout << endl;
}
示例12: 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");
}
示例13: 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;
}
示例14: 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;
}