编写一个程序,发出一声警报
然后打印下面的文本:
Startled by the sudden sound,Sally shouted,
'By the Great Pumpkin, what was that !'
3回答
-
习惯受伤
C++:#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
Beep(800, 500);
cout << "Startled by the sudden sound,Sally shouted, 'By the Great Pumpkin, what was that !";
return 0;
}
-
夂亦
#include <stdio.h>
int main(){
printf("\a");
printf("Startled by the sudden sound,Sally shouted, 'By the Great Pumpkin, what was that !'");
}