为什么这段代码会导致我的程序停止工作

Why this code will cause my program to be stop working?

本文关键字:我的 程序 停止工作 段代码 代码 为什么      更新时间:2023-10-16
for(user = 0; user <= max; user++)
{
    name[user] = name1;
    password[user] = password1;
}

程序运行到这个循环后,它就停止工作了,我需要终止程序。我该如何解决这个问题?

尝试将代码更改为:

for(user=0; user<max; user++)  // Remove the '=' sign
{
     name[user]=name1;
     password[user]=password1;
}
相关文章: