I'm a Beginner!! Help!!

I have to construct an "Itunes database capable of holding 10 song/album/artist records. I also have to allow the user to be able to change any field in the record (song/album/artist). As well as printing the final menu. I'm not quite sure where to go from here and any help would be greatly appreciated!!


#include <iostream>
#include <string>
using namespace std;

int printMenu( );
void printDatabase( );
void changesongName( );
void changeartistName( );
void changealbumName( );

string songName[10];
string artistName[10];
string albumName[10]; // Initialize arrays

int main()
{

songName[ 0 ] = "Take a Walk";
artistName [ 0 ] = "Passion Pit";
albumName [ 0 ] = "Gossamer";

songName [ 1 ] = "Lights";
artistName [ 1 ] = "Ellie Goulding";
albumName [ 1 ] = "Halcyon";

songName [ 2 ] = "The Day I Lost My Voice";
artistName [ 2 ] = "Copeland";
albumName [ 2 ] = "You Are My Sunshine";

songName [ 3 ] = "Slow Dancing in a Burning Room";
artistName [ 3 ] = "John Mayer";
albumName [ 3 ] = "Continuum";

songName [ 4 ] = "Suit and Tie";
artistName [ 4 ] = "Justin Timberlake";
albumName [ 4 ] = "The 20/20 Experience";

songName [ 5 ] = "Holocene";
artistName [ 5 ] = "Bon Iver";
albumName [ 5 ] = "Bon Iver";

songName [ 6 ] = "Where the Fence is Low";
artistName [ 6 ] = "Lights";
albumName [ 6 ] = "Siberia";

songName [ 7 ] = "I Will Wait";
artistName [ 7 ] = "Mumford and Sons";
albumName [ 7 ] = "Babel";

songName [ 8 ] = "Hospital";
artistName [ 8 ] = "Lydia";
albumName [ 8 ] = "Illuminate";

songName [ 9 ] = "Everything is Alright";
artistName [ 9 ] = "Motion City Soundtrack";
albumName [ 9 ] = "Commit This to Memory"; // Fill arrays

int x;
while (true)
{
x = printMenu();
switch ( x )
{
case( 0 ): return 0;
case( 1 ):
{
printDatabase();
break;
}
case( 2 ):
{
changesongName();
break;
}
case( 3 ):
{
changeartistName();
break;
}
case( 4 ):
{
changealbumName();
break;
}}



}// end main

int printMenu();
{
int choice;
cout << " ***********************************"<< endl;
cout << " * *"<< endl;
cout << " * 0. Exit Program *"<< endl;
cout << " * 1. Print Entire Database *"<< endl;
cout << " * 2. Change Song *"<< endl;
cout << " * 3. Change Artist *"<< endl;
cout << " * 4. Change Album *"<< endl;
cout << " * *"<< endl;
cout << " ***********************************"<< endl;

cout << endl;
cout << "Please enter choice: ";
cin >> choice;
return choice;
}}
Topic archived. No new replies allowed.