Skip to content
Sign upLog in
← Back to Community
Como limpar a tela do programa em C no repl it? (How to clear the screen in system C repl it ? )
Profile icon
MuriloGabriel

//Português (Portuguese BR)
Como limpar a tela do programa em C no repl it?
Eu usei o system("CLS"); mas não funcionou.
Queria saber como faz para resolver isso.

//Inglês (English)
How to clean C program screen in repl it?
I used the system ("CLS"); but it did not work.
I wonder how you do it to solve this.

Voters
Profile icon
higgoralves
Profile icon
TecX
Profile icon
JemimaAraujo
Profile icon
LaraFerlin
Profile icon
ueslei13
Profile icon
MuriloGabriel
Comments
hotnewtop
Profile icon
SixBeeps

repl.it runs on Linux, so try system("clear") instead.

Profile icon
MuriloGabriel

@niorg2606
I don't have linux in my computer, is windows 10

Profile icon
Zavexeon

@MuriloGabriel
Yes, but the repl.it server are running linux. Repl.it is actually running the code and sending back the results to your computer.

Profile icon
MuriloGabriel

@Zavexeon
ok, but, do u know any code that I can use for my program?
If so, could u give that? pls

Profile icon
Zavexeon

@MuriloGabriel
If it's in replit, the above code that he gave should work fine.

Profile icon
Darkourarte32

Obrigado. Deu certo no meu windows 10.

Profile icon
Douglascabral18

how can I do that on Windows 10 ?