Home › Forums › C Programming › please look at me !
- This topic has 2 replies, 3 voices, and was last updated 17 years ago by
S.Thananchayan.
Viewing 2 reply threads
- AuthorPosts
- December 26, 2006 at 1:34 pm #1955
monalisa
Participantthis code’s main is biiiiip cout<<"a";
but is does not work ? please help me ! - January 12, 2007 at 11:02 pm #3217
msaqib
ParticipantWell this code wors fine. I have tried the following code using Turbo C++. The is as
12345678910#include<stdlib.h><br />#include<process.h><br />#include<stdio.h><br />#include<conio.h><br /><br />void main(void){<br />clrscr();<br />cout<<"a";<br />getch();<br />}This code produces the beep sound. I haev checked this code on windows XP.
- August 1, 2007 at 7:26 am #3218
S.Thananchayan
Participant12345678910111213141516#include <iostream><br />#include <windows.h> // WinApi header<br />using namespace<span style="font-size:1.0em"> std;<br />int main()<br />{<br />Beep(523,1000); //523 hertz (C5) for 500 milliseconds<span style="font-size:1.0em"><br />Beep(587,500);<br />Beep(659,500);<br />Beep(698,500);<br />Beep(784,500);<br />Beep(698,500);<br />Beep(659,500);<br />Beep(587,500);<br />Beep(523,1000);<br />return<span style="font-size:1.0em"> 0;<br />}</span></span></span></iostream>
- AuthorPosts
Viewing 2 reply threads
- The forum ‘C Programming’ is closed to new topics and replies.