i'm trying to do this
But it doesn't quite work. Can someone show me how to do it properly?Code:string in_file; cin >> in_file; ifstream in( in_file );
i'm trying to do this
But it doesn't quite work. Can someone show me how to do it properly?Code:string in_file; cin >> in_file; ifstream in( in_file );
Last edited by dra; 08-08-2005 at 07:00 AM.
you should use in_file.c_str() instead.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)