编写一个程序,发出一声警报

然后打印下面的文本: Startled by the sudden sound,Sally shouted, 'By the Great Pumpkin, what was that !'
小王记笔记
浏览 2697回答 3
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, &#039;By the Great Pumpkin, what was that !&#039;"); }
打开App,查看更多内容
随时随地看视频慕课网APP