Home Forums C Programming please look at me !

Viewing 2 reply threads
  • Author
    Posts
    • #1955
      monalisa
      Participant

      this code’s main is biiiiip  cout<<"a";
      but is does not work ? please help me !

    • #3217
      msaqib
      Participant

      Well this code wors fine. I have tried the following code using Turbo C++. The is as

      #include
      #include
      #include
      #include

      void main(void){
        clrscr();
        cout<<"a";
        getch();
      }

      This code produces the beep sound. I haev checked this code on windows XP.

    • #3218
      S.Thananchayan
      Participant
      #include 
      #include // WinApi header
      using namespace std;
      int main()
      {
      Beep(523,1000); //523 hertz (C5) for 500 milliseconds
      Beep(587,500);
      Beep(659,500);
      Beep(698,500);
      Beep(784,500);
      Beep(698,500);
      Beep(659,500);
      Beep(587,500);
      Beep(523,1000);
      return 0;
      }
Viewing 2 reply threads
  • The forum ‘C Programming’ is closed to new topics and replies.