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"); }
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; }
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"); }
int main() { Person one; Person two("Smythecraft"); Person three("Dimwiddy", "Sam"); one.Show(); cout << endl; one.FormalShow(); return 0; }
void main() { Person l ("ahmed" ,"magdy"); l.Show(); cout<<endl; l.FormalShow(); cout<<endl; Person d; d.Show(); }
void main () { Person x; Person y("Nabil"); Person z("Nabil","Diana"); x.Show(); y.Show(); z.Show(); x.FormalShow(); y.FormalShow(); z.FormalShow(); }
void main() { Person a; Person c("Sarah"); Person b("Sarah","Safwat"); a.Show(); a.FormalShow(); b.Show(); b.FormalShow(); c.Show(); c.FormalShow(); };
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; }
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; }
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; }
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; }
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"); }
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; }
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; }