for(char k=18; k<23; k++) //for green background from row 18 to 23
{
for(char l=0;l<80;l++)
{
SetConsoleTextAttribute(hOut,BACKGROUND_GREEN | FOREGROUND_GREEN | BACKGROUND_INTENSITY);
cout<<char(array[k][l]=219);
}
}
for(char m=23; m<25; m++) //for yellow background in last 2 rows
{
for(char n=0; n<80; n++)
{
SetConsoleTextAttribute(hOut,BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_INTENSITY);
cout<<char(array[m][n]=176);
}
}
//to change foreground colour back to white with green background
First and foremost please use codetags whenever you post code on the forums. They are the <> box right off to the right under Format: when your replying.
But on to your question, I'm not really sure what you mean by robot is flickering while moving. But the main thing I see is thisvoid main() main is a int not a void. It should be int main() I don't know what IDE your using that doesn't put our a error for that but I would consider upgrading.
Yes that is true but for beginners the two usually go hand in hand so just thought I would say IDE since really all updated modern IDE's come with up to date compilers.