Hello, I am having a small problem because I have to have to have it so the user can enter a number and that number is stored in a variable and that variable becomes the name of the file to be created with the extension .asw. It is going to be a custom encrypted file. Just need to know what is wrong because I am getting an error right now.
cout << "Enter the Item ID: \n";
string ItemID;
cin >> ItemID;
ofstream ItemFile;
ItemFile.open(ItemID.c_str()".asw");
ItemFile.close();
The error is error: expected `)' before string constant|