I'm new with c++ and I just can't figure this out. I want the user, to input their mp3 directory. Then, they input the mp3 files name (without the .mp3). This is my code (which doesn't work)
void mp3Choice()
{
clrscr();
cout<<"\n\n Your MP3 directory?"<<endl;
cin>>mp3Dir;
cout<<"\n\n The filename of the desired MP3? "<<endl;
cin>>fileName;
strcat(mp3Dir, "fileName");
strcat(fileName, ".mp3");
system(fileName);
}
i've entered all the chars etc in the beginning, so don't comment on that they don't excist
-----------------EDIT-----------------
Nevermind, I solved it
-----------------EDIT-----------------