dioguito Posted March 15, 2009 at 12:15 PM Report Share #250801 Posted March 15, 2009 at 12:15 PM boas nao sei como se faz para limpar o ecra em c, se me podessem ajudar. cumprimentos Diogo Martins Link to comment Share on other sites More sharing options...
fnds Posted March 15, 2009 at 12:17 PM Report Share #250804 Posted March 15, 2009 at 12:17 PM Limpar o ecra como?, estás a falar da consola?, se sim a maneira mais simples que conheço (em win) usares o cls: system("CLS"); Link to comment Share on other sites More sharing options...
Rat Posted March 15, 2009 at 02:07 PM Report Share #250814 Posted March 15, 2009 at 02:07 PM como o dioguito disse em windows podes usar system("cls"); em linux podes usar system("clear"); Link to comment Share on other sites More sharing options...
dioguito Posted March 15, 2009 at 07:33 PM Author Report Share #250880 Posted March 15, 2009 at 07:33 PM eu ja experimentei e da-me erros...nao é de estar a por numa funcao? cumprimentos Link to comment Share on other sites More sharing options...
TheDark Posted March 15, 2009 at 07:52 PM Report Share #250887 Posted March 15, 2009 at 07:52 PM Que erros te aparecem? Convém especificares, senão é difícil ajudar. Desaparecido. Link to comment Share on other sites More sharing options...
Rat Posted March 15, 2009 at 08:24 PM Report Share #250895 Posted March 15, 2009 at 08:24 PM erros ou warnings? porque quando uso a função system também me da warnings mas funcionam na mesma 😛 Link to comment Share on other sites More sharing options...
TheDark Posted March 15, 2009 at 09:01 PM Report Share #250902 Posted March 15, 2009 at 09:01 PM Podes mostrar tudo, ninguém te cobra mais... :😛 Desaparecido. Link to comment Share on other sites More sharing options...
dioguito Posted March 15, 2009 at 09:02 PM Author Report Share #250903 Posted March 15, 2009 at 09:02 PM ja resolvi o problema...é ke tava a por o system("cls") por cima da declaração de uma variavel e depois dava o erro ke a variavel nao estava definida...mas agora pôs por baixo e já funciona bem... cumprimentos Link to comment Share on other sites More sharing options...
SkySkull Posted May 13, 2009 at 02:34 PM Report Share #263844 Posted May 13, 2009 at 02:34 PM Não existe nenhuma função/chamada ao sistema que funcione comummente em Windows e UNIX? Link to comment Share on other sites More sharing options...
Ferreira Posted May 13, 2009 at 06:52 PM Report Share #263927 Posted May 13, 2009 at 06:52 PM Podes usar uma macro: #ifdef WIN32 #define clear() system("cls") #else #define clear() system("clear") #endif http://twitter.com/ferreira Link to comment Share on other sites More sharing options...
SkySkull Posted May 13, 2009 at 07:02 PM Report Share #263931 Posted May 13, 2009 at 07:02 PM Thanks 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now