D - positioning output in the console
- Andrew Edwards (8/8) Nov 16 2002 I'm attempting to writing a c++ hangman game and would like to know if i...
-
Carlos
(18/18)
Nov 16 2002
"Andrew Edwards"
escribió en el mensaje -
Andrew Edwards
(13/13)
Nov 19 2002
"Carlos"
wrote in message -
Carlos
(74/74)
Nov 19 2002
"Andrew Edwards"
escribió en el mensaje - zhang li (290/298) Nov 16 2002 ^_^
I'm attempting to writing a c++ hangman game and would like to know if is possible to keep the output at a set location on the screen. I would like to have the gallows and any additional output to appear in the same location without printing an inordinate amount of new line characters. The program must also be portable so I'm trying to stay away from os specific functions if possible. your assistance is greatly appreciated! andrew
Nov 16 2002
"Andrew Edwards" <crxace13 comcast.net> escribió en el mensaje news:ar6tut$2bl0$1 digitaldaemon.com... | I'm attempting to writing a c++ hangman game and would like to know if is | possible to keep the output at a set location on the screen. I would like | to have the gallows and any additional output to appear in the same | location without printing an inordinate amount of new line characters. The | program must also be portable so I'm trying to stay away from os specific | functions if possible. | | your assistance is greatly appreciated! | andrew | I can help you with the gotoxy() function. However, this is a Windows-only version of the function. If you still want it, let me know. ------------------------- Carlos Santander http://carlos3.netfirms.com/
Nov 16 2002
"Carlos" <carlos8294 msn.com> wrote in message news:ar6u3f$2buu$1 digitaldaemon.com... | I can help you with the gotoxy() function. However, this is a Windows-only | version of the function. If you still want it, let me know. | | ------------------------- | Carlos Santander | http://carlos3.netfirms.com/ | I would appreciate that alot Carlos! Thanks. Andrew
Nov 19 2002
"Andrew Edwards" <crxace13 comcast.net> escribió en el mensaje news:ard6i2$7qa$1 digitaldaemon.com... | "Carlos" <carlos8294 msn.com> wrote in message | news:ar6u3f$2buu$1 digitaldaemon.com... | | | I can help you with the gotoxy() function. However, this is a | Windows-only | | version of the function. If you still want it, let me know. | | | | ------------------------- | | Carlos Santander | | http://carlos3.netfirms.com/ | | | | I would appreciate that alot Carlos! | Thanks. | | Andrew | Ok, then. Here it goes. It also includes some other console functions (wherex, wherey, clrscr, textcolor, textbackground). The code is adapted from conio.c from dev-c++. ————————————————————————— Carlos Santander http://carlos3.netfirms.com/ begin 666 console.d M"B ("!$05)+1U)!62P +RH (FQI9VAT(&)L86-K(B J+PT*(" ($Q)1TA4 M0DQ512P-"B ("!,24=(5$=2145.+ T*(" ($Q)1TA40UE!3BP-"B ("!, M3T]21"!C;V]R9#L-" D)1%=/4D0 =W)I='1E;CL-" D)0T].4T],15]30U)% M;VYS;VQE3W5T<'5T0VAA<F%C=&5R5R H1V5T4W1D2&%N9&QE*%-41%]/5510 M551?2$%.1$Q%*2P )R G+ T*"0D):6YF;RYD=U-I>F4N6" J(&EN9F\N9'=3 M.PT*"0EC+E /2!X("T ,3L-" D)8RY9(#T M5%!55%](04Y$3$4I+&$I.PT*"7T-" D-" EV;VED('1E>'1B86-K9W)O=6YD M*&EN="!A*0T*"7L-" D):68 *&$]/4),24Y+*0T*"0EA/5=(251%.PT*"0D- M/4),24Y+*2!B/5=(251%.PT*"0E?7T)!0TM'4D]53D0]8CL-" D)7U]&3U)% M0T].4T],15]30U)%14Y?0E5&1D527TE.1D\ :6YF;SL-" D)1V5T0V]N<V]L M95-C<F5E;D)U9F9E<DEN9F\H1V5T4W1D2&%N9&QE*%-41%]/5510551?2$%. M1$Q%*2P )FEN9F\I.PT*"0ER971U<FX :6YF;RYD=T-U<G-O<E!O<VET:6]N M;F9O*$=E=%-T9$AA;F1L92A35$1?3U544%547TA!3D1,12DL("9I;F9O*3L- M"B ("!V;VED('=I;F1O=RAI;G0 7VQE9G0L(&EN="!?=&]P+"!I;G0 7W)I M(" (" (%(N3&5F=" ](%]L969T.PT*(" (" ("!2+E1O<" ](%]T;W [ M(#T 7V)O='1O;3L-"B (" (" 4V5T0V]N<V]L95=I;F1O=TEN9F\ *$=E M=%-T9$AA;F1L92A35$1?3U544%547TA!3D1,12DL(%12544L("92*3L-"B ` end
Nov 19 2002
^_^ There is directly operate to video card memory, map it to a 64 kb frame under 1 MB address. I am also looking for something to make DOS graph programs. Li "Andrew Edwards" <crxace13 comcast.net> ??????:ar6tut$2bl0$1 digitaldaemon.com...I'm attempting to writing a c++ hangman game and would like to know if is possible to keep the output at a set location on the screen. I would like to have the gallows and any additional output to appear in the same location without printing an inordinate amount of new line characters.Theprogram must also be portable so I'm trying to stay away from os specific functions if possible. your assistance is greatly appreciated! andrewbegin 666 SVGA.TXT M,3 +2!615-!(%-U<&5R5D=!($))3U, +2!'150 4W5P97)61T$ 24Y&3U)- M051)3TX-"B (" 05 /2 T1C P: T*(" ("!%4SI$22 M/B R-38M8GET M92!B=69F97( 9F]R(%-U<&5R5D=!(&EN9F]R;6%T:6]N("AS964 8F5L;W<I M"B ,$5H(" ($173U)$(" <&]I;G1E<B!T;R!L:7-T(&]F('-U<'!O<G1E M02!"24]3("T 1T54(%-U<&5R5D=!($U/1$4 24Y&3U)-051)3TX-"B (" M(" 15,Z1$D +3X ,C4V+6)Y=&4 8G5F9F5R(&UO9&4 :6YF;W)M871I;VX M*'-E92!B96QO=RD-" T*(%)E='5R;CH 04P /2 T1F 9G5N8W1I;VX <W5P M(&=R87!H:6-S(&UO9&4L(&-L96%R(&EF('1E>'0 ;6]D90T*(" P,F (" M871T<FEB=71E<R H87, 9F]R('=I;F1O=R!!*0T*(" P-& (" 5T]21" M('-I>F4-"B ,#AH(" (%=/4D0 (" <W1A<G0 <V5G;65N="!O9B!W:6YD M;W< 00T*(" P06 (" 5T]21" ("!S=&%R="!S96=M96YT(&]F('=I;F1O M;F< 9G5N8W1I;VX *&5Q=6EV+B!T;R!!6#TT1C U:"D-"B ,3!H(" (%=/ M4D0 (" 8GET97, <&5R('-C86X ;&EN90T*("TM+7)E;6%I;F1E<B!I<R!O M<'1I;VYA;"!F;W( 5D5302!M;V1E<RP ;F5E9&5D(&9O<B!/14T ;6]D97,M M("!73U)$(" (&AE:6=H="!I;B!P:7AE;',-"B ,39H(" ($)95$4 (" M651%(" (&AE:6=H="!I9B!C:&%R86-T97( 8V5L;"!I;B!P:7AE;',-"B M,3AH(" ($)95$4 (" ;G5M8F5R(&]F(&UE;6]R>2!P;&%N97,-"B ,3EH M("!"651%(" (&YU;6)E<B!O9B!B86YK<PT*(" Q0F (" 0EE412 ("!M M96UO<GD ;6]D96P ='EP90T*(" Q0V (" 0EE412 ("!S:7IE(&]F(&)A M<R!D;VXG="!C;&5A<B!V:61E;R!M96UO<GD-" T*(%)E='5R;CH 04P /2 T M4V5E06QS;SH 05 ]-$8P,V -" T*(%9A;'5E<R!F;W( 5D5302!V:61E;R!M M"B!2971U<FXZ($%,(#T -$9H(&9U;F-T:6]N('-U<'!O<G1E9 T*(" ("!! M.B!!6#TT1C M5D=!($))3U, +2!3059%+U)%4U1/4D4 4W5P97)61T$ 5DE$14\ 4U1!5$4- M<FXZ($)8(#T M('-T871E<R!T;R!S879E+W)E<W1O<F4-"B (" (" (&)I=" P.B!V:61E M(#T -$9H(&9U;F-T:6]N('-U<'!O<G1E9 T*(" ("!!2" ]('-T871U<PT* M(" (" P,6 9V5T('9I9&5O(&UE;6]R>2!W:6YD;W<-"B (" (" (%)E M='5R;CH 1% /2!W:6YD;W< 861D<F5S<R!I;B!V:61E;R!M96UO<GD *&EN M(&=R86XN('5N:71S*0T*(" ("!"3" ]('=I;F1O=R!N=6UB97(-"B (" M971U<FXZ($%,(#T -$9H(&9U;F-T:6]N('-U<'!O<G1E9 T*(" ("!!2" ] ,:"!F86EL960-" T* ` end begin 666 VGA2.TXT M(%!A<F%M971E<B!$>6YA;6EC(%-A=F4 07)E82P 96QS92 P(%M%1T$O5D=! M;VYD87)Y(%-A=F4 4&]I;G1E<B!486)L92P ;75S="!B90T*(" (" (" M86)L92!I;FET:6%L;'D :6X 4D]-+"!C;W!Y('1O(%)!32!T;R!A;'1E<BP M(%-E8V]N9&%R>2!6:61E;R!3879E(%!O:6YT97( 5&%B;&4 6U9'02!O;FQY M4D0 (" 3&5N9W1H(&]F('1H:7, =&%B;&4 :6X 8GET97,L(&EN8VQU9&EN M<W!L87D 0V]M8FEN871I;VX 0V]D92!486)L92P ;75S="!B92!V86QI9 T* M"B ,$5H(" ($173U)$(" <F5S97)V960L('IE<F\-"B ,3)H(" ($17 M3U)$(" <F5S97)V960L('IE<F\-"B ,39H(" ($173U)$(" <F5S97)V M960L('IE<F\-" T*(%1A8FQE(&EN:71I86QL>2!I;B!23TTL(&-O<'D =&\ M+2TM+2TM+0T*($9O<FUA="!O9B!6:61E;R!087)A;65T97( 5&%B;&4 6T5' M1T%=(&5L96UE;G1S+"!E86-H(&5L96UE;G0 -C0 8GET97, ;&]N9PT*($5L M(" (" 36]D97, ,$9H+3$P:"!W:&5N(&]N;'D -C1K0B!204T ;VX 861A M<'1E< T*(" Q,6 M,3)H(" (" ("!-;V1E<R P1F M,3!H('=H96X /C8T M96YT(%M%1T$L(%9'02!O;FQY73H-"B!/9F9S970 (%-I>F4 (" 1&5S8W)I M;VYT<F]L;&5R(%)E9VES=&5R<R P,& M,#AH M+2!!;B!A<G)A>2!O9B Q,2!E;&5M96YT<RP 96%C:"!E;&5M96YT(&)E:6YG M:6X ,C P+6QI;F4 ;6]D92!F;W( 9&EG:71A;"!D:7-P;&%Y<PT*(" (" M(&%N86QO9R!D:7-P;&%Y<PT*(" (" (" (" (" ("!-;V1E<R P,F L M(&9O<B!A;F%L;V< 9&ES<&QA>7,-"B (" (" (" (" (" 36]D97, M(&9O<B!A;F%L;V< 9&ES<&QA>7,-"B (" (" (" (" (" 36]D92 M92!E;&5M96YT(%M-0T=!(&]N;'E=. T*($]F9G-E=" 4VEZ92 ("!$97-C M(" (" (" (" (" *'-E92 T,& Z-$%H*0T*(" P,6 (" 0EE412 M("!2;W=S(&]N('-C<F5E;B!M:6YU<R!O;F4 (" (" (" *'-E92 T,& Z M:7IE(&]F('9I9&5O(&)U9F9E<B (" (" (" (" *'-E92 T,& Z-$-H M9&5R($-O;G1R;VP =&\ <&]R=" S1#EH M(" (%)E9W, ,"TQ-0T*(" Q,& (" 0EE412 ("!,87-T(&1A=&$ =W)I M='1E;B!T;R!!='1R:6)U=&4 0V]N=')O;&QE<B!/=F5R<V-A;B!296<-"B M,3%H+49&:" (" (" 4F5S97)V960-"B (" (" (" (" (" 3F]T M93H 3F5E9"!F;W( =&%B;&4 =V%S('1H870 14=!(')E9VES=&5R<R!W97)E M(" (" 3F]T93H 268 9&5F875L="!V86QU97, *&9R;VT =&AE(%9I9&5O M(%!A<F%M971E<B!486)L92D-"B (" (" (" (" (" ("!A<F4 ;W9E M<BUR:61D96X 870 82!M;V1E('-E="!B>2!T:&4 5D=!(%5S97( 4&%L971T M90T*(" (" (" (" (" (" (%!R;V9I;&4 5&%B;&4L('1H96X =&AE M($1Y;F%M:6, 4V%V92!!<F5A(&ES('5P9&%T960-"B (" (" (" (" M(" ("!W:71H('1H92!D969A=6QT('9A;'5E<RP ;F]T('1H92!5<V5R(%!R M("!$97-C<FEP=&EO; T*(" P,& (" 0EE412 ("!,96YG=& :6X 8GET M97, ;V8 96%C:"!C:&%R86-T97( :6X 9F]N="!T86)L90T*(" P,6 (" M;6%X:6UU;2!C86QC=6QA=&5D('9A;'5E*0T*(" P0F (" 0EE415, ("!! M<G)A>2!O9B!M;V1E('9A;'5E<R!T;R!W:&EC:"!T:&ES(&9O;G0 :7, =&\ M"B M+2TM+2TM+0T*($9O<FUA="!O9B!396-O;F0 06QP:&%N=6UE<FEC($-H M;VUE('-A>2!S86UE(&%S(&9I<G-T(&]V97)R:61E(&%B;W9E+"!B=70 24)- M($)95$4 (" 3&5N9W1H(&EN(&)Y=&5S(&]F(&5A8V 8VAA<F%C=&5R(&EN M871O<B!204T 8F%N:R!T;R!L;V%D+"!N;W)M86QL>2!N;VXM>F5R;PT*(" P M,F (" 0EE412 ("!R97-E<G9E9 T*(" P,V (" 1%=/4D0 ("!P='( M=&\ 9F]N="!T86)L90T*(" P-V (" 0EE415, ("!!<G)A>2!O9B!M;V1E M('9A;'5E<R!T;R!W:&EC:"!T:&ES(&9O;G0 :7, =&\ <&5R=&%I; T*(" M($]F9G-E=" 4VEZ92 ("!$97-C<FEP=&EO; T*(" P,& (" 0EE412 M(" (%=/4D0 (" 3&5N9W1H(&EN(&)Y=&5S(&]F(&5A8V 8VAA<F%C=&5R M=&\ =VAI8V =&AI<R!F;VYT(&ES('1O('!E<G1A:6X-"B (" (" ($)9 M(" ($YU;6)E<B!O9B!E;G1R:65S(&EN('1H92!$0T, =&%B;&4 870 ;V9F M,F (" 0EE412 ("!-87AI;75M(&1I<W!L87D ='EP92!C;V1E('1H870 M(&)Y=&5S(&=I=F5S('9A;&ED(&1I<W!L87D-"B (" (" (" ("!C;VUB M(" (" (" (" (" (" (" (" P,F (" ($-'02!W:71H(&-O;&]R M(&1I<W!L87D-"B (" (" (" (" (" (" (" (" P,V (" (')E M=VET:"!M;VYO(&1I<W!L87D-"B (" (" (" (" (" (" (" (" P M.& (" (%9'02!W:71H(&-O;&]R(&1I<W!L87D-"B (" (" (" (" M(" (" (" ,$%H(" ("!-0T=!('=I=& 9&EG:71A;"!C;VQO<B!D:7-P M=& 86YA;&]G(&UO;F\ 9&ES<&QA>0T*(" (" (" (" (" (" (" M(" (" (" (" (" (" (" (" 1D9H(" ("!U;G)E8V]G;FES960 M;&5T=&4 4')O9FEL92!486)L92!;5D=!(&]N;'E=. T*($]F9G-E=" 4VEZ M92 ("!$97-C<FEP=&EO; T*(" P,& (" 0EE412 ("!5;F1E<FQI;FEN M(" (" (" (" (" (" (" (" (" P,& ]96YA8FQE(&EN(&UO;F]C M(" (" (" ("!O;FQY($9&:#UD:7-A8FQE(&EN(&%L;"!A;'!H86YU;65R M+3$W*2!O9B!!='1R:6)U=&4 0V]N=')O;&QE<B!R96=I<W1E<G, :6X =&%B M9VES=&5R<R!T;R!O=F5R<FED90T*(" (" (" (" (" (" (" (" M(%1A8FQE(&ES(&%N(&%R<F%Y(&]F($)95$5S+ T*(" P0V (" 5T]21" M:" ("!$5T]21" ('!T<B!T;R!T86)L92!O9B!V:61E;R!$04, 0V]L;W( M-& (" 0EE415, ("!A<G)A>2!O9B!M;V1E('9A;'5E<R!T;R!W:&EC:"!T M:&ES('!R;V9I;&4 :7, =&\ <&5R=&%I; T*(" (" (" (" (" ("!" ;651%(" ($9&:"!E;F0 ;V8 87)R87D-" T* ` end
Nov 16 2002