the_labrax 0 #1 Posted August 2, 2008 Isso irá melhorar o visual do console, só falta colocar cores. Divirtão-se. #include <stdio.h> #include <stdlib.h> #include "gotoxy.h" //<--Adicione o seu gotoxy #define HORIZ 80 //dimensão da janela direção horizontal #define VERTI 25 //dimensão da janela direção vertical /*213 203 184 179 179 200 203 190*/ int main() { int i,o, vv=VERTI,//-1, hh=HORIZ;//-1; system("cls"); gotoxy(0,0); for(i=0;i<=HORIZ;i++); printf("%c",203); gotoxy(0,vv); for(i=0;i<=HORIZ;i++); printf("%c",203); for(i=0;i<=vv;i++) { gotoxy(0,i); printf("%c",179); } for(i=0;i<=vv;i++) { gotoxy(hh,i); printf("%c",179); } gotoxy(0,0); printf("%c",213); gotoxy(hh,0); printf("%c",184); gotoxy(0,vv); printf("%c",200); gotoxy(hh,vv); printf("%c",190); } Eu acho que é isso, qualquer coisa poste aqui. (não foi testado no windows) Share this post Link to post Share on other sites
Baxnie 8 #2 Posted August 19, 2008 (edited) Cade o #include "gotoxy.h" ? Conheçe uma tecla chamada "Tab"? Edited December 23, 2008 by Ploct Share this post Link to post Share on other sites
the_labrax 0 #3 Posted August 27, 2008 @Ploct o gotoxy.h é para você mesmo escrever, pois eu não sei como que seria o seu para Windows, já que eu uso no Linux e são potencialmente diferentes. Conheço muito bem a tecla tab. Você conhece as vírgulas, que estão participando da declaração de vv e hh? Flws~ Share this post Link to post Share on other sites
rexxar 0 #4 Posted December 15, 2008 no caso do gotoxy.h no windows nos usamos a header conio.h :music: Share this post Link to post Share on other sites
Huan_ 0 #5 Posted December 15, 2008 Cade o #include "gotoxy.h" ? Onde declarou vv e hh? Conheçe uma tecla chamada "Tab"? Tbm n vi :] Share this post Link to post Share on other sites
PoSo 0 #6 Posted December 15, 2008 Ele declarou nas linhas 15 e 16, não? Abraço. Share this post Link to post Share on other sites
the_labrax 0 #7 Posted December 15, 2008 @duvida do vv e hh aewww, alguém finalmente viu... @rexxar no dev-cpp não tem a funcionalidade completa do conio.h(claro, se você baixar o adaptado sim). além de que é comum o pessoal usar o do dev-cpp e não terem instalado algo diferente por causa dos ots... (: flws Share this post Link to post Share on other sites
Eventide 7 #8 Posted December 16, 2008 onde coloco isso? isso é, em que parte das sources.. Share this post Link to post Share on other sites