C++ and C efficiency

C++ and C efficiency

4.11 - 1251 ratings - Source

Text for the professional programmer familiar with C or C++. Examines techniques for speeding up progress and improving efficiency in terms of space and time. Includes exercises, answers, a bibliography and an index.ADT. A simple and efficient implementation of a stack uses an array of elements and an integer (called the stack pointer) ... in C++ simply because the declaration of abstract data types is more transparent in C++ than in C. The C++ code for the ... Array Implementation of Stack // iinclude alt;stdlib.hagt; a™cinclude alt;iostream.hagt; const int SIZE = 100; // How many elements in ... if (sp =- SIZE) ( // Already too many? cerr alt;alt; aquot;Overflow error\naquot;; exit (1) ; agt; arr[sp++] = data; // Push onto end of arrayanbsp;...

Title:C++ and C efficiency
Author:David Spuler
Publisher: - 1992


You Must CONTINUE and create a free account to access unlimited downloads & streaming