Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我得到了简单的代码来将所有 _ 更改为空格,但是......它不起作用!Any1知道为什么吗?我不知道
while (fout >> array[x][y]){ if (array[x][y]=='_') array[x][y]==' '; y++; if (y==8) { y=0; x+=1; } }
看看这一行:
if (array[x][y]=='_') array[x][y]==' '; ^
尝试设置新值时有两个等号。