C语言高级程序设计讲座3.docVIP

  • 2
  • 0
  • 约1.16万字
  • 约 14页
  • 2017-05-31 发布于北京
  • 举报
C语言高级程序设计讲座3 C语言程序设计 2009-07-27 08:48 阅读156 评论0 字号: 大 中 小小 技术支持:29 经过上面两节课的学习,我们应该对C语言的图形设计有一定的了解,这节课我们主要讲一下C语言的发音,让你的程序声图并茂。 学习目标 ?学习用C语言发声 ?了解声音功能函数 ?了解乐谱文件的制作 ?能够结合图像与声音,让你的程序声图并茂 打破沉寂 首先我们来看一个源代码: #define FALSE 0 #define TRUE 1 #includedos.h main() { int snd; /* which sound to produce */ int cnt; /* number of times to repeat sound */ int note; /* Current note, when sweeping frequencies */ while (TRUE) { /* Male Sure any previous sounds ave turned off. */ nosound(); /* Ask the user for which type of sounf*/ printf (1-siren;2-overload;3-whoop;4-phaser; 0-exit)

文档评论(0)

1亿VIP精品文档

相关文档