星垂平野

Stars on everywhere

摘要: 题目要求:让计算机发出警告并输入如下语句。Run away! The house is getting fire.基础知识不扎实的我,想了半天,都准备用windows.h中的beep函数了。ASCII 字符中的 ’\a’也就是’\007’即是响铃符,现在的C/C++编译器基本上都支持这一字符的输出响铃。使用只需printf打印出即可。#define beep '\a' printf("%c",a); printf("%c",'\007'); 阅读全文
posted @ 2012-12-06 20:49 Lovelace.Lee 阅读(1968) 评论(0) 推荐(0) 编辑
Copyright(c) 2011-2013, All Rights Reserved by Lovelace.Lee.