int main()
{
char* NamePointer = new char;
std::cout << "Enter the file you want to edit (MUST BE IN THE PROJECT'S DIRECTORY): ";
std::cin >> &NamePointer;
const char* FileName = NamePointer;
delete &NamePointer;
return 0;
}
This returns me the error in the title:
std::cin >> &NamePointer;
Any ideas? This is probably something simple I'm missing, but when I looked it up I didn't get my answer.
JUST FIXED IT, SORRY FOR BOTHERING! I took out the "&" in "&NamePointer".
Yeah I just found out another way of doing this using c_str(). Sorry!