Robert Lafore

Robert Lafore’s Followers (23)

member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo
member photo

Robert Lafore



Average rating: 4.13 · 1,153 ratings · 98 reviews · 52 distinct worksSimilar authors
Object-Oriented Programming...

by
4.16 avg rating — 419 ratings — published 1995 — 16 editions
Rate this book
Clear rating
Data Structures and Algorit...

4.13 avg rating — 339 ratings — published 1998 — 19 editions
Rate this book
Clear rating
Waite Group's Turbo C Progr...

4.10 avg rating — 217 ratings — published 1987 — 3 editions
Rate this book
Clear rating
Waite Group's Turbo C Progr...

4.27 avg rating — 55 ratings — published 1990 — 2 editions
Rate this book
Clear rating
Sams Teach Yourself Data St...

3.88 avg rating — 42 ratings — published 1999 — 3 editions
Rate this book
Clear rating
C++ Interactive Course: Fas...

4.03 avg rating — 37 ratings — published 1996
Rate this book
Clear rating
Assembly Language Primer fo...

4.43 avg rating — 28 ratings — published 1984
Rate this book
Clear rating
Microsoft C: Programming fo...

4.23 avg rating — 13 ratings — published 1987 — 4 editions
Rate this book
Clear rating
Nesne Yönelimli C++ Program...

by
4.25 avg rating — 8 ratings — published 2002
Rate this book
Clear rating
The Waite Group's Object-Or...

4.14 avg rating — 7 ratings — published 1991 — 6 editions
Rate this book
Clear rating
More books by Robert Lafore…
Quotes by Robert Lafore  (?)
Quotes are added by the Goodreads community and are not verified by Goodreads. (Learn more)

“//empmult.cpp //multiple inheritance with employees and degrees #include using namespace std; const int LEN = 80;           //maximum length of names //////////////////////////////////////////////////////////////// class student                 //educational background    {    private:       char school[LEN];       //name of school or university       char degree[LEN];       //highest degree earned    public:       void getedu()          {          cout << "   Enter name of school or university: ";          cin >> school;          cout << "   Enter highest degree earned \n";          cout << "   (Highschool, Bachelor's, Master's, PhD): ";          cin >> degree;          }       void putedu() const          {          cout << "\n   School or university: " << school;          cout << "\n   Highest degree earned: " << degree;          }    }; //////////////////////////////////////////////////////////////// class employee    {    private:       char name[LEN];         //employee name       unsigned long number;   //employee number    public:       void getdata()          {          cout << "\n   Enter last name: "; cin >> name;          cout << "   Enter number: ";      cin >> number;          }       void putdata() const          {          cout << "\n   Name: " << name;          cout << "\n   Number: " << number;          }    }; //////////////////////////////////////////////////////////////// class manager : private employee, private student  //management    {    private:       char title[LEN];        //"vice-president" etc.       double dues;            //golf club dues    public:       void getdata()          {          employee::getdata();          cout << "   Enter title: ";          cin >> title;          cout << "   Enter golf club dues: "; cin >> dues;          student::getedu();          }       void putdata() const          {          employee::putdata();          cout << "\n   Title: " << title;          cout << "\n   Golf club dues: " << dues;          student::putedu();          }    }; //////////////////////////////////////////////////////////////// class scientist : private employee, private student  //scientist    {    private:       int pubs;     //number of publications    public:       void getdata()          {          employee::getdata();          cout << "   Enter number of pubs: "; cin >> pubs;          student::getedu();          }       void putdata() const          {          employee::putdata();          cout << "\n   Number of publications: " << pubs;          student::putedu();          }    }; //////////////////////////////////////////////////////////////// class laborer : public employee             //laborer    {    }; //////////////////////////////////////////////////////////////// int main()    {    manager m1;    scientist s1, s2;    laborer l1;    cout << endl;    cout << "\nEnter data for manager 1";    //get data for    m1.getdata();                            //several employees    cout << "\nEnter data for scientist 1";    s1.getdata();    cout << "\nEnter data for scientist 2";    s2.getdata();    cout << "\nEnter data for laborer 1";    l1.getdata();    cout << "\nData on manager 1";           //display data for    m1.putdata();                            //several employees    cout << "\nData on scientist 1";    s1.putdata();    cout << "\nData on scientist 2";    s2.putdata();    cout << "\nData on laborer 1";    l1.putdata();    cout << endl;    return 0;    }”
Robert Lafore, Object-Oriented Programming in C++

“// passarr.cpp // array passed by pointer #include using namespace std; const int MAX = 5;           //number of array elements int main()    {    void centimize(double*);  //prototype    double varray[MAX] = { 10.0, 43.1, 95.9, 59.7, 87.3 };    centimize(varray);        //change elements of varray to cm    for(int j=0; j”
Robert Lafore, Object-Oriented Programming in C++

“// ptrnote.cpp // array accessed with pointer notation #include using namespace std; int main()    {                                       //array    int intarray[5] = { 31, 54, 77, 52, 93 };    for(int j=0; j<5; j++)                  //for each element,       cout << *(intarray+j) << endl;       //print value    return 0;    }”
Robert Lafore, Object-Oriented Programming in C++



Is this you? Let us know. If not, help out and invite Robert to Goodreads.