solution3 - } int main () { // Verse 1 firstline();...

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

View Full Document Right Arrow Icon
CSCI-1100 Computer Science I Rensselaer Polytechnic Institute Spring 2004 Studio 3 -- Solutions Problem 2: // Generate three verses of a song #include <iostream> using namespace std; void firstline() { cout << "That the way" << endl; } void thirdline() { cout << "I like it" << endl; } void repeatedline() { cout << "Uh-huh, Uh-huh" << endl;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } int main () { // Verse 1 firstline(); repeatedline(); thirdline(); repeatedline(); cout &lt;&lt; endl; // Verse 2 firstline(); repeatedline(); thirdline(); repeatedline(); cout &lt;&lt; endl; // Verse 3 firstline(); repeatedline(); thirdline(); repeatedline(); cout &lt;&lt; endl; return 0; }...
View Full Document

Ask a homework question - tutors are online