Originally Posted by
reet_dhiman
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();
}
}