How to make a Piano using C++ Programming Language | source code Free

Create a Piano Game with source code in C++ programming language . this is a very attractive and interesting game for any programmer and we can make easily piano game with C++ language .

Source Code

 #include<conio.h>
 #include<dos.h>
 #include<fstream.h>

 void jain(int a)
 {
 sound((a*8)/2);
 delay(300);
 nosound();
 }

 void main(int argc,char *argv[])
 {
 char dude;
 fstream file1;
 file1.open(argv[1],ios::out);
 clrscr();
 cout<<"PIANO "<<" Press 'q' to exit.";
 while(dude!='q')
 {
 jain(dude);
 dude=getch();
 if(dude!='q')
 file1.put(dude);
 }
 file1.close();
 } 

READ MORE ANDROID APPS

ShareTweetShare

YouTube Video

https://www.youtube.com/watch?v=HyUWQFcDTh8

Additional Reading


Cheers!

READ MORE…

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top