Answer the question
In order to leave comments, you need to log in
How to write to string using ifstream a string in Visual Studio compiler?
Cat:
ifstream in("input.txt");
string s;
in >> s;
Answer the question
In order to leave comments, you need to log in
Add at the beginning of your code:
And everything will work)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question