1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

functions in c

Discussion in 'Meet and Greet' started by roi_908, Nov 4, 2011.

Thread Status:
Not open for further replies.
  1. roi_908

    roi_908 New Member

    Joined:
    Nov 4, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    my teacher told us to find a game for turbo c and evaluate its functions.
    This is the codes:
    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 anuj;
    fstream file1;
    file1.open(argv[1],ios::out);
    clrscr();
    cout<<"PIANO "<<"
    
    
    Press `q' to exit.
    ";
    while(anuj!='q')
    {
    jain(anuj);
    anuj=getch();
    if(anuj!='q')
    file1.put(anuj);
    }
    file1.close();
    }
    
    I really have to write every meaning of the functions of this code....please help me!!!
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    1
    Trophy Points:
    0
Thread Status:
Not open for further replies.

Share This Page