I have the following code for a dictionary.
void Dictionary::translate(char out_s[], const char s[]) { for (int i=0;i
When you do e.g.
for (int i=0;i
then the variable i is local to the loop only, you can't really use it outside the loop.
i
If you want to use i outside the loop, then you need to declare it outside the loop:
int i; for (i=0;i