in know how can i go back to the beginning of switch statement now. But still don't know how can i go back to the previous switch statement.
For example
int main(){
Collection c;
Album a;
Song s;
cout<<"Hello, World!n";
cout<<"nPlease Enter a number for a Mode"<<endl;
cout<<" 1- Collection Moden 2- Album Moden 3- Song Moden 4- Song Selection Moden 5- Album Selection Moden"<<endl;
int selection;
cin>>selection;
switch(selection){
case 1:
c.printCollectionMode();
break;
case 2:
a.printAlbumMode();
break;
case 3:
s.printSongMode();
break;
case 4:
s.SonSelectionMode();
break;
case 5:
a.AlbumSelectionMode();
break;
return 0;
}
this is my Main function. for example, if i enter 5, it will execute the AlbumSelectionMode. but How can i go back to the main function after i get into the AlbumSelectionMode