Languages :: Pascal :: put string on coord x, y |
|||
| By: TheFalklands |
Date: 08/05/2003 00:00:00 |
Points: 20 | Status: Answered Quality : Excellent |
|
dear experts, i was just wondering if i can write a function or procedure that would allow me to output a string anywhere on the screen. i am newbie in pascal, but in c i would probaly write something like this: void put_string(X,Y, s[]); /* X & Y are integers */ main { gotoxy(X,Y); printf(s[]) } put_string(15,15,"here"); this would allow me to print "here" on coord (15,15). my knowledge of c is pretty rusty. i hope you can get the idea of what i am trying to say. instead of having to write in pascal: gotoxy(x,y); write('junk junk junk'); all the time. thanks |
|||
| By: VGR | Date: 08/05/2003 07:00:00 | Type : Answer |
|
| procedure put_string(x,y : Word; s : String); Begin GotoXY(x,y); Write(s); End; (* put_string Procedure *) as simple as this :D |
|||
| By: VB guy | Date: 08/05/2003 07:15:00 | Type : Comment |
|
| thanks again VGR ^_^ |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








