A.H
A.H

Reputation: 29

Different use of openMode in File. C++

What is the difference between using this form of code fstream file{"foo.txt", ios::out}; and fstream foo{"foo.txt", fstream::out}; and this fstream file{"foo.txt", file.out};

What is the difference and how does the compiler understand it?

Upvotes: 0

Views: 40

Answers (0)

Related Questions