当前位置: 首页>>代码示例>>C++>>正文


C++ Person::FormalShow方法代码示例

本文整理汇总了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");
}
开发者ID:yousifelhady,项目名称:Assignment-1,代码行数:16,代码来源:Programming+Question(2).cpp

示例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;
} 
开发者ID:ajh17,项目名称:CppProjects,代码行数:31,代码来源:ex2.cpp

示例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");
}
开发者ID:ameks94,项目名称:PrataTasks,代码行数:28,代码来源:main.cpp

示例4: main

int main() {
Person one; 
Person two("Smythecraft"); 
Person three("Dimwiddy", "Sam");
one.Show();
cout << endl;
one.FormalShow();
return 0;
}
开发者ID:DoaaOsama,项目名称:report-1,代码行数:9,代码来源:2.cpp

示例5: main

void main()
{
	Person l ("ahmed" ,"magdy");
	l.Show();
	cout<<endl;
	l.FormalShow();
	cout<<endl;
	Person d;
	d.Show();

}
开发者ID:monmon4,项目名称:my-assignment,代码行数:11,代码来源:person.cpp

示例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();
}
开发者ID:DianaNabil,项目名称:CSE321-Assignments,代码行数:12,代码来源:two.cpp

示例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();
};
开发者ID:SaraAmin,项目名称:SWE-Assignment-1-,代码行数:12,代码来源:main.cpp

示例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;
}
开发者ID:mlabadi2,项目名称:code,代码行数:13,代码来源:person.cpp

示例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;
}
开发者ID:Z-Gu,项目名称:Cpp-Primer-Plus,代码行数:14,代码来源:10_2.cpp

示例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;
}
开发者ID:chunlanse,项目名称:books,代码行数:17,代码来源:use_person.cpp

示例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;

}
开发者ID:mo2men1,项目名称:Assignment-1,代码行数:17,代码来源:Q2.cpp

示例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");
}
开发者ID:MarkSidASU,项目名称:mark-ass1,代码行数:18,代码来源:mperson.cpp

示例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;
}
开发者ID:magedmagdy,项目名称:SE-Assignment-1,代码行数:23,代码来源:main.cpp

示例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;
}
开发者ID:Umneiah,项目名称:Software_Assignment_1,代码行数:23,代码来源:Person.cpp


注:本文中的Person::FormalShow方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。