Ohhh guys for printing my menu I am using this code:
Code:
// printing top RED background
do
{
mainchInfo[j].Char.AsciiChar = ' ';
mainchInfo[j].Attributes = BACKGROUND_RED | BACKGROUND_INTENSITY;
j++;
}while(j < 80);
// printing top menu
do
{
for(i = 0; i < strlen(menu[u]); i++)
{
mainchInfo[k].Char.AsciiChar = *(menu[u] + i);
k++;
}
u++;
mainchInfo[k].Char.AsciiChar = ' ';
k++;
}while(u < count);
put_screen(&coord, mainchInfo);
I need code like this for making that background changing colors ...
So I ask how to make when my selection is on data to switch it to next element of array of pointers, I need a algorithm if i am on 3rd one how to switch to 4th one ... and in backward
Hope now I am clear ...