CS246 Study Guide - Midterm Guide: Glossary Of Video Game Terms, C String Handling, Linked List

112 views8 pages

Document Summary

Winter 2009, updated: february 23, 2009: considering the following code and its output. Draw out the state of the memory at the speci ed location. What is the output of the program? cout << 264 << endl; cout << 1351 << endl; cout << 454 << endl; cout << . << endl; #include using namespace std; int main () 2: write a stack for doubles using a linked list. Doublestack (); void push ( double val ); // assume pop is always called with at least 1 element in stack double pop (); double peek (); // assume peek is always called with at least 1 element in stack bool isempty (); 3: write a program that compares two les and output the line numbers as well as its content where they di er. If a le is shorter than the other, then the last comparable line is the number of lines in the shorter le.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Questions