1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
#include <iostream>
#include <fstream>
#include "tsuPod.h"
using namespace std;
int main()
{
initTsuPod();
int retCode;
retCode = addSong("Runaway", "Bon Jovi", 1);
cout << retCode << endl;
retCode = addSong("Time", "Pink Floyd", 2);
cout << retCode << endl;
retCode = addSong("Bad Moon", "Creedance Clearwater Revival", 3);
cout << retCode << endl;
retCode = addSong("I'll Wait", "Van Halen", 4);
cout << retCode << endl;
retCode = addSong("Tush", "ZZ Top", 5);
cout << retCode << endl;
retCode = addSong("Nature Boy", "Nat King Cole", 6);
cout << retCode << endl;
retCode = addSong("DOA", "Foo Fighters", 2);
cout << retCode << endl;
retCode = addSong("Houndog", "Elvis", 1);
cout << retCode << endl;
showSongList();
cout << endl;
retCode = removeSong("Time");
cout << retCode << endl;
showSongList();
cout << endl;
}
|