コード例 #1
0
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
0
ファイル: ex2.cpp プロジェクト: ajh17/CppProjects
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
0
ファイル: main.cpp プロジェクト: ameks94/PrataTasks
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
0
ファイル: 2.cpp プロジェクト: DoaaOsama/report-1
int main() {
Person one; 
Person two("Smythecraft"); 
Person three("Dimwiddy", "Sam");
one.Show();
cout << endl;
one.FormalShow();
return 0;
}
コード例 #5
0
ファイル: person.cpp プロジェクト: monmon4/my-assignment
void main()
{
	Person l ("ahmed" ,"magdy");
	l.Show();
	cout<<endl;
	l.FormalShow();
	cout<<endl;
	Person d;
	d.Show();

}
コード例 #6
0
ファイル: two.cpp プロジェクト: DianaNabil/CSE321-Assignments
void main ()
{
Person x;
Person y("Nabil");
Person z("Nabil","Diana");
x.Show();
y.Show();
z.Show();
x.FormalShow();
y.FormalShow();
z.FormalShow();
}
コード例 #7
0
ファイル: main.cpp プロジェクト: SaraAmin/SWE-Assignment-1-
 void main()
{
   Person a;
   Person c("Sarah");
   Person b("Sarah","Safwat");
   a.Show();
   a.FormalShow();
   b.Show();
   b.FormalShow();
   c.Show();
   c.FormalShow();
};
コード例 #8
0
ファイル: person.cpp プロジェクト: mlabadi2/code
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
0
ファイル: 10_2.cpp プロジェクト: Z-Gu/Cpp-Primer-Plus
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
0
ファイル: use_person.cpp プロジェクト: chunlanse/books
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
0
ファイル: Q2.cpp プロジェクト: mo2men1/Assignment-1
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
0
ファイル: mperson.cpp プロジェクト: MarkSidASU/mark-ass1
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
0
ファイル: main.cpp プロジェクト: magedmagdy/SE-Assignment-1
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
0
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;
}