I tried using decimals in gotoxy. It doesn't work. Can anyone hellp me here? My specifics are in my info, thanks.
I tried using decimals in gotoxy. It doesn't work. Can anyone hellp me here? My specifics are in my info, thanks.
sorry, i would have been more specific in my first post but... i don't know... i guess i just forgot... for example... i tried to make it so that their could be more specific spots on the screen.
Code:int main() { float pstx=.5; float psty=.5; pstx=pstx+.5; gotoxy(pstx,psty); cout << "hello"; return 0; }
I'm pretty sure that gotoxy takes some kind of integer as parameters, you can't use floating point values because they'll just be truncated to 0. If you want more control of the screen you have to use higher graphics than the console's text terminal.
Processing error: Stupidity detected.
------------------------------
Dr. Bebop
Windows XP Professional Ed.
Microsoft Visual Studio 6
gotoxy takes int arguments, so passing a float will implicity convert it to an int
gotoxy takes int arguments because the xy coordinates to which 'goto' refers are the xy coordinates of the console; a pure-text enviroment... so a non-int position for text doesn't make much sense