flush - getline(cin, desc); cout <<...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// flush.cpp / #include <iostream.h> #include "apstring.h" # int main() { int quantity; apstring desc; cout << "Enter the quantity desired: "; cin >> quantity; cout << "Enter the description of the item: ";
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: getline(cin, desc); cout &lt;&lt; &quot;You requested &quot; &lt;&lt; quantity &lt;&lt; &quot; of item described as \n&quot;; cout &lt;&lt; desc &lt;&lt; &quot;.\n&quot;; return 0; }...
View Full Document

This note was uploaded on 06/20/2011 for the course COMPUTING 379 taught by Professor Dr.anoopsarkar during the Spring '11 term at American College of Computer & Information Sciences.

Ask a homework question - tutors are online