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 50 51 52
|
#include <iostream>
#include <fstream>
#include "tsuPod.h"
using namespace std;
int main()
{
// Following code initializes the tsuPod
initTsuPod();
// Following code lists all songs located in tsuPod memeory
showSongList();
cout << endl;
// Following code tests tsuPod input functionality
int retCode = addSong("Runaway1", "Bon Jovi1", 1);
retCode = addSong("Runaway2", "Bon Jovi2", 2);
retCode = addSong( "Runaway3", "Bon Jovi3", 3);
retCode = addSong( "Runaway4", "Bon Jovi4", 1);
retCode = addSong( "Runaway5", "Bon Jovi5", 5);
retCode = addSong( "Runaway6", "Bon Jovi6", 6);
retCode = addSong( "Runaway7", "Bon Jovi7", 1);
retCode = addSong( "Runaway8", "Bon Jovi8", 1);
retCode = addSong( "Runaway8", "Bon Jovi8", 1);
retCode = addSong( "Runaway8", "Bon Jovi8", 1);
retCode = addSong( "Runaway8", "Bon Jovi8", 1);
cout << retCode << endl;
showSongList();
cout << endl;
// Following code tests tsuPod song removal functionality
retCode = removeSong("Runaway100");
cout << retCode << endl;
showSongList();
cout << endl;
system("PAUSE");
}
|