关于while循环有大神可以解释一下吗?
#include <iostream>using namespace std;
const int Arsize = 20;
int main()
{
char name[Arsize];
cout << "Your first name, please:";
cin >> name;
cout << "Here is your name, verticalized and ASCIIized:\n";
int i = 0;
while (name[i])
{
cout << name[i] << ":" << int(name[i]) << endl;
i++;
}
return 0;
}
为什么输出的是这个(图片)