I want to delete the previous line in screen console.
system("cls"); is clear all my screen.

what compiler are you using? Turbo C has a goto() function that moves the cursor somewhere then you would just print spaces. If you are using a more modern compiler then you will have to use some of the win32 api console functions to move the cursor to the beginning of the line you want to delete.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.