cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Different files
Different files
Jul 3, 2012 at 4:08pm UTC
Saamwiil
(1)
How do you get a file (get("text.txt")), but the file isn't defined in the programme but rather by user input. Example:
get(x) //doesn't work for me.x is a string.
Last edited on
Jul 3, 2012 at 4:10pm UTC
Jul 3, 2012 at 4:15pm UTC
Moschops
(7244)
You can fetch input from a user to populate a string.
1
2
string x; cin >> x;
What is
get
supposed to do? It's not a standard C++ function.
Last edited on
Jul 3, 2012 at 4:15pm UTC
Topic archived. No new replies allowed.