Now what this does is it makes the bottom of the screen yellow with hyphens through the top and bottom row. But whenever i use this it creates a row of yellow background below the bottom hyphen likeCode:void ReadString(string Text, int speed) { int Tet = Text.size(); int i = 0; for(i = 0;i < Tet;i++) { cout << Text[i]; Sleep(speed); if(kbhit()) { getch(); speed = 1; } } } void ReadString(string Text, int speed, int times) { int Tet = Text.size(); int i = 0; int x = 0; for(x = 0;x <times;x++) { for(i = 0;i < Tet;i++) { cout << Text[i]; Sleep(speed); if(kbhit()) { getch(); speed = 1; } } } } void SetupPlayerArea() // Requires gotoxy //Windows.h //namespace std { gotoxy(0,20); SetConsoleTextAttribute( GetStdHandle( STD_OUTPUT_HANDLE ), 0xE5 ); string Playerline = "--------------------------------------------------------------------------------"; string Blanks = " "; ReadString(Playerline,0); ReadString(Blanks,0,4); ReadString(Playerline,0); gotoxy(0,0); }
HYPHEN LINE
BLANK LINE
BLANK LINE
BLANK LINE
BLANK LINE
HYPHEN LINE
BLANK LINE
And i cant see why this is occuring :/. Also the hypen line is suppose to be the bottom of the console window cause ive set the window size to 800 x - 350 y and the buffer size to 80 x and 26 y