Hello, this is my source code so far:
and it gives me this error when I compile:Code:#include <fstream> #include <iostream> #include <string> using namespace std; string fileName; string fileCont; using namespace std; int main() { cout<<"What filename should we use? "; cin>>fileName; cin.ignore(); cin.get(); cout<<"What content should we statch into the file? "; cin>>fileCont; cin.ignore(); ofstream file ("." << fileName); file<<"." << fileCont; cin.get(); return 0; }
22 C:\Documents and Settings\user\Desktop\lolcoolnohax.cpp no match for 'operator<<' in '"." << fileName'
What the hell is happening? I don't have a clue what the error is.



LinkBack URL
About LinkBacks



