这是我在C中的代码。
#include <stdio.h>
int main(){
printf("\a\n");
printf("Startled by the sudden sound, Sally shouted, \"By the Great Pumpkin, what was that!?\"");
return 0;
}
据说,"\a\n“应该会发出警报,对吧?然而,出于某种原因,它并没有这么做。我使用的是UbuntuZ校,bash命令beep听起来确实很响,但是echo -e '\a&