Why this should not work?
Why fstream doesn't accept a string as a path?Code:#include <iostream> #include <fstream> #include <string> int main() { using namespace std; string str = "C:\\test.del"; ifstream f(str); }
Why this should not work?
Why fstream doesn't accept a string as a path?Code:#include <iostream> #include <fstream> #include <string> int main() { using namespace std; string str = "C:\\test.del"; ifstream f(str); }
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C