I have started learning c++ with the help of "thinking in c++" I am stuck at the 6th exercise of it, which asks to concatenate all the elements of a vector into a single string. based on my learning till now I have written the following code but it doesn't seem to work, could someone please explain? It got compiled properly but doesn't show anything on screen.
Check if file is opened properly.
It looks like there was an error with file, so no data were read.
Also Output vector size before handling string to see if there is actual data in it.
Thanks a lot to both of you, it's working now , previously the file was not opened so it didn't show any output. I copied it to some other directory and created a new project(I could not find the old one) and it started working as usual :)