C++ Lookup of i changed for ISO

前端 未结 3 1333
我寻月下人不归
我寻月下人不归 2021-01-25 00:42

I have the following code for a dictionary.

void Dictionary::translate(char out_s[], const char s[])
{

for (int i=0;i

        
3条回答
  •  旧巷少年郎
    2021-01-25 01:25

    i is declared in the for loop condition clause. it is not visible at the if clause after for loop.

    try:

    int i = 0;
    for (;i

提交回复
热议问题