How would i output my vector of strings into a ".txt" file?
The same way you would write any character array. If you don't know how to do that either here is a tutorial to help you out.
This post should help
You have to iterate through the elements of the vector and output each string to the file.
Here's one way:
for(const auto& s : v)
file_out << s << std::endl;
for(auto it = v.begin(); it != v.end(); ++it)
file_out << *it << std::endl;
for(std::size_t i = 0; i < v.size(); ++i)
file_out << v[i] << std::endl;
There's really not much to it. Pick what you are most comfortable with.
I want to draw a triangle using mouse events like mousePressed(), mouseReleased() and mouseDragged(). But triangle did not show until mouse release. Please tell me what i am ...
what i have done is copied answer in label and now matching the radiobutton option with it so far so good but i dont know how to uncheck radio button ...
Is there anyone know how to read a text file line by line from the web/internet in VC++?
I have a function which works well in reading the ...