- This topic has 2 replies, 3 voices, and was last updated 17 years, 4 months ago by .
Viewing 2 reply threads
Viewing 2 reply threads
- The forum ‘C Programming’ is closed to new topics and replies.
Home › Forums › C Programming › please look at me !
this code’s main is biiiiip cout<<"a";
but is does not work ? please help me !
Well this code wors fine. I have tried the following code using Turbo C++. The is as
1 2 3 4 5 6 7 8 9 10 | #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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #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> |