lunch - string sandwich; filling = HAM + " and "...

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

View Full Document Right Arrow Icon
// Program Lunch writes out the contents of a sandwich. / #include <iostream> #include <string> using namespace std; u const string HAM = "ham"; const string CHEESE = "cheese"; const string LETTUCE = "lettuce"; const string BREAD = "bread"; c int main() { string filling;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: string sandwich; filling = HAM + " and " + CHEESE + " with " + LETTUCE; sandwich = filling + " on white " + BREAD + '.'; cout << "Filling : " << filling << endl; cout << "Sandwich : " << sandwich << endl; return 0; }...
View Full Document

This note was uploaded on 02/08/2011 for the course CSC 101 taught by Professor Joedzuback during the Spring '11 term at Union County.

Ask a homework question - tutors are online