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

Additional Reading


Cheers!

READ MORE…

Categories: Program

DeepCrazyWorld

Hey, I'm Deepika a professional blogger, web designer, Android developer and software engineer. I like to gain every type of knowledge that's why i have done many courses in different fields like engineering and technology. I love thrills and travelling to new places and hills.

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published.