Results 1 to 2 of 2

Thread: Switch between windows in C++ screens

  1. #1
    Junior Member
    Join Date
    Feb 2007
    Answers
    26

    Switch between windows in C++ screens

    hello everyone.

    need ur help. i want to know how can we switch between windows in our c++ screens by using the arrow keys. i tried to do something on my part but was not successuful. below is the code for that. can anyone help me out plz.

    #include
    #include
    void hi();
    void how();
    void fine();
    void main()
    {
    clrscr();
    hi();
    how();
    getch();
    }
    void hi()
    {
    clrscr();
    int a;
    cout<<"HELLO";
    a= getch();
    if(a==55)
    {
    how();
    }
    }
    void how()
    {
    clrscr();int a;
    cout<<"How r u?";
    a=getch();
    if(a==53)
    {
    hi();
    }
    else
    {
    fine();
    }
    }
    void fine()
    {
    clrscr();
    int a;
    cout<<"M Fine";
    a==getch();
    if(a==53)
    {
    how();
    }
    }


  2. #2
    Contributing Member
    Join Date
    Oct 2007
    Answers
    88

    Smile Re: Switch between windows in C++ screens

    Quote Originally Posted by reet_dhiman View Post
    hello everyone.

    need ur help. i want to know how can we switch between windows in our c++ screens by using the arrow keys. i tried to do something on my part but was not successuful. below is the code for that. can anyone help me out plz.

    #include
    #include
    void hi();
    void how();
    void fine();
    void main()
    {
    clrscr();
    hi();
    how();
    getch();
    }
    void hi()
    {
    clrscr();
    int a;
    cout<<"HELLO";
    a= getch();
    if(a==55)
    {
    how();
    }
    }
    void how()
    {
    clrscr();int a;
    cout<<"How r u?";
    a=getch();
    if(a==53)
    {
    hi();
    }
    else
    {
    fine();
    }
    }
    void fine()
    {
    clrscr();
    int a;
    cout<<"M Fine";
    a==getch();
    if(a==53)
    {
    how();
    }
    }
    i cant understand your program pls be clear


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact