每次我输入 7 时,Cmd 都会生成 "beep"
Cmd makes a "beep" every time I input 7
当我执行这个时,每次我输入 7,PC 都会生成一个 "beep"。有人可以向我解释为什么吗?我用这个 header: http://www.stroustrup.com/Programming/std_lib_facilities.h
int main()
{
double d = 0;
while (cin >> d){
int i = d;
char c = i;
int i2 = c;
cout << "d==" << d
<< " i==" << i
<< " i2==" << i2
<< " char==(" << c << ")\n";
}
}
ASCII 字符 7 是 bell character 可以追溯到远古时代的电传打字机...
当我执行这个时,每次我输入 7,PC 都会生成一个 "beep"。有人可以向我解释为什么吗?我用这个 header: http://www.stroustrup.com/Programming/std_lib_facilities.h
int main()
{
double d = 0;
while (cin >> d){
int i = d;
char c = i;
int i2 = c;
cout << "d==" << d
<< " i==" << i
<< " i2==" << i2
<< " char==(" << c << ")\n";
}
}
ASCII 字符 7 是 bell character 可以追溯到远古时代的电传打字机...