cd - { for(int i=0; i<albums.size();++i) if...

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

View Full Document Right Arrow Icon
#include <iostream> #include <vector> # using namespace std; u int main() { vector<string> albums; vector<string> artists; string album; string artist; cout<<"Enter the albums followed by the artists.\n";
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { for(int i=0; i<albums.size();++i) if (album==albums[i]) albums.push_back(album); artists.push_back(artist); } int i=0; i<albums.size(); ++i; cout << '(' << albums[i] << ',' << artists[i] << ")\n"; }...
View Full Document

This note was uploaded on 03/28/2011 for the course ECE 315 taught by Professor Staff during the Spring '06 term at North Texas.

Ask a homework question - tutors are online