visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: Pascal :: put string on coord x, y


By: TheFalklands U.S.A.  Date: 08/05/2003 00:00:00  English  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 English  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 English  Type : Comment
thanks again VGR ^_^

Do register to be able to answer

EContact
browser fav
page generated in 332.108970 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page