assignment7 - #include<string> using...

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

View Full Document Right Arrow Icon
/* Assignment 7: Write a program which declares string variables called president, vicePresident and speakerOfTheHouse. Assign values to these variables based on who is currently in office. Print each of them on a separate line as follows (for example): The president is Barack Obama. The vice president is Joe Biden. The speaker of the house is Nancy Pelosi.*/ T #include<iostream>
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: #include&lt;string&gt; using namespace std; u int main () i { string president = &quot;Barack Obama&quot;; string vicePresident = &quot;Joe Biden&quot;; string speakerOfTheHouse = &quot;Nancy Pelosi&quot;; s cout &lt;&lt; &quot;The president is &quot; &lt;&lt;president&lt;&lt; &quot;.\n&quot;; cout &lt;&lt; &quot;The vice president is &quot; &lt;&lt;vicePresident&lt;&lt; &quot;.\n&quot;; cout &lt;&lt; &quot;The speaker of the house is &quot; &lt;&lt;speakerOfTheHouse&lt;&lt; &quot;.\n&quot;; c }...
View Full Document

This note was uploaded on 01/11/2010 for the course CMPSC 101 taught by Professor Drobish,renee during the Summer '07 term at Pennsylvania State University, University Park.

Ask a homework question - tutors are online