cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
code
code
Dec 14, 2015 at 12:16am UTC
three60
(4)
What does this code do
fstream file.open("States.txt", fstream::in);
i dont understand the :: part or why the code has -, fstream::in-
Dec 14, 2015 at 12:17am UTC
JayhawkZombie
(738)
http://www.cplusplus.com/reference/fstream/fstream/open/
fstream::in
is one of the flags you can send to the open function. It means the file is for
in
put
'::' is the scope resolution operator.
Last edited on
Dec 14, 2015 at 12:18am UTC
Topic archived. No new replies allowed.