Hey guys. Im trying to open a file the user entered.
cout<<"Please enter the file name";
cin>>name;
cout<<"Do you want to open the file? [yes] or [no]"<<endl;
cin>>pick;
if(pick=="yes")
system("C:\\wmplayer.exe fname");
else
cout<<"Good bye";
How do i get the value thats in fname to be printed their so it can open the file.
Lets say the value of fname was movie.avi. The user entered movie.avi and fname is a string that stores that value