I want to create a function in which a text printed just shown for 1 sec then flush and then a new text appear..
basically the purpose is to create a loader...which appers when the data is manipulating..it will show like this.
\|/.....when it moves fast ..it looks like a stick going forward..

you can use '\r\ to move the cursor back to the beginning of the current line so that you can print some other text, e.g. printf("\rHello");

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.