{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

C++ FAQ - Revision 20-April-92 Author contact Marshall...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Revision: 20-April-92 Author contact: Marshall Cline Paradigm Shift, Inc 65 N. Main St. / Norwood NY 13668-1121 voice:315/353-4585, fax:315/353-6110 email:[email protected] Copyright: Copyright (C), 1991,1992 Marshall P. Cline, Ph.D. Permission to copy all or part of this work is granted, provided that the copies are not made or distributed for resale (except nominal copying fee may be charged),and provided that the NO WARRANTY, author-contact, and copyright notice are retained verbatim & are displayed conspicuously. If anyone needs other permissions that aren't covered by the above, please contact the author. ============================================================================== SUBSECTION: Table of Contents ============================================================================== PART01 -- Introduction and table of contents Table of Contents Nomenclature and Common Abbreviations PART02 -- Environmental/managerial issues Q1: What is C++? What is OOP? Q2: What are some advantages of C++? Q3: Who uses C++? Q4: Does C++ run on machine `X' running operating system `Y'? Q5: What C++ compilers are available? Q6: Is there a translator that turns C++ code into C code? Q7: Are there any C++ standardization efforts underway? Q8: Where can I ftp a copy of the latest ANSI-C++ draft standard? Q9: Is C++ backward compatible with ANSI-C? Q10: What books are available for C++? Q11: How long does it take to learn C++? PART03 -- Basics of the paradigm Q12: What is a class? Q13: What is an object? Q14: What is a reference? Q15: What happens if you assign to a reference? Q16: How can you reseat a reference to make it refer to a different object? Q17: When should I use references, and when should I use pointers? Q18: What are inline fns? What are their advantages? How are they declared? PART04 -- Constructors and destructors Q19: What is a constructor? Why would I ever use one? Q20: What are destructors really for? Why would I ever use them? PART05 -- Operator overloading Q21: What is operator overloading? Q22: What operators can/cannot be overloaded? Q23: Can I create a `**' operator for `to-the-power-of' operations? PART06 -- Friends Q24: What is a `friend'? Q25: Do `friends' violate encapsulation? Q26: What are some advantages/disadvantages of using friends?
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Q27: What does it mean that `friendship is neither inherited nor transitive'? Q28: When would I use a member function as opposed to a friend function? PART07 -- Input/output via and Q29: How can I provide printing for a `class X'? Q30: Why should I use instead of the traditional ? Q31: Printf/scanf weren't broken; why `fix' them with ugly shift operators? PART08 -- Freestore management Q32: Does `delete ptr' delete the ptr or the pointed-to-data? Q33: Can I free() ptrs alloc'd with `new' or `delete' ptrs alloc'd w/ malloc()? Q34: Why should I use `new' instead of trustworthy old malloc()? Q35: Why doesn't C++ have a `realloc()' along with `new' and `delete'? Q36: How do I allocate / unallocate an array of things? Q37: What if I forget the `[]' when `delete'ing array allocated via `new X[n]'? Q38: What's the best way to create a `#define macro' for `NULL' in C++?
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern