I have a simple code that asks a user to input a folder for the program to work within.
char MasterDirectory [50];
cout << "Please enter the directory containing the MP3 files you wish to have organised. " << endl;
cin >> MasterDirectory;
GetFileListing(MasterDirectory, "*.mp3");
However, the program doesn't function correctly if the input directory contains a space. Sorry for the rookie question, but how can I enclose the variable of "MasterDirectory" in quotation marks for GetFileListing?