7 Million Study Materials
From students who've taken these classes before
24/7 Access to Tutors
Personal attention for all your questions
Learn
93% of our members earn better grades
11 sample documents related to CS 275
-
Independent compilation Large programs are dicult to maintain Problem solved by breaking the program into separate les Dierent functions placed in dierent les The main function appears in only one le, conventionally known as main.c Advantages R
-
Inheritance Property of object-oriented programming that allows one class, known as a derived class, to share the structure and behavior of another class, known as the base class Allows newly created members to inherit members (attributes and metho
-
Dynamic Memory Allocation new and delete operators Memory is allocated by using the new operator (it is not a function) new is followed by a type name and causes a block of memory of the size of the type to be allocated on the free store It return
-
Overloading Function overloading Call to a function should be based on context Which is better? student_print ( student ), or student.print(); date_print ( date ), or date.print() Allows for the use of same name for multiple functions, for examp
-
Revision Control System (RCS) Project management Dicult to keep track of dierent versions of a le if several people are making updates Source code and documentation les change frequently Bugs need to be xed (but keep a copy of the older working pr
-
Input/Output Stream I/O Stream Sequence of bytes that may be input to, or output from, a program Three standard streams in C+ 1. cin Standard input stream (stdin) 2. cout Standard output stream (stdout) 3. cerr Standard error stream (stderr) c
-
Classes Structured types The syntax and semantics of struct in C are retained in C+ with minor dierences In C+, the struct keyword may be dropped when using the structure name as a type In C, the keyword struct can be dropped only if you declare t
-
Introduction to C+ History of C+ First released in 1983 Derived from C and retains C as a subset C itself was inspired by bcpl The / convention of bcpl is brought back into C+ Another inspiration came from Simula67 Simula67 was the first object
-
Reading Assignment: Chapter 1, 2, 3, 4, and 8 from the book by Sobell; also read Chapter 5 from the same book though Ill cover parts of it in class. UNIX was not designed to stop you from doing stupid things, because that would also stop you from doi
-
Regular expressions and sed & awk Regular expressions Key to powerful, ecient, and exible text processing by allowing for variable information in the search patterns Dened as a string composed of letters, numbers, and special symbols, that denes on
-
Debugging Interactive debugging Based on a source code, statement-level debugger Allows to discover values of variables by using their names in the source program, tracing their execution one statement at a time The C les are compiled with the -g
7,000,000 study materials • 24/7 tutors • earn better grades