1) char out;
which is in a "for" loop and each time iteration goes on "char out" receives a new value as a letter. So, "char out" can be a, b, c etc. A letter each time.
2) string output;
What we need is that the letter in "char out" to be transfered to "string output", so that in the end we will have "string output" which will contain text composed of all the letters received from "char out".
The question is: how this can be done?
I tried function output.insert(); it does not work in this case.
I tried also the method below, however it also does not work :
char out;
string output(out);
This also does not work :
char out;
string output(out, 1); // assuming that the size is 1