You are not logged in. Please login at www.codechef.com to post your questions!

×

How to do flushing in c++?

How to flush and why to use it ?

asked 07 Dec '18, 20:03

shashank_chugh's gravatar image

2★shashank_chugh
1
accept rate: 0%


In C++ you may use fflush(stdout) or cout << flush (it depends on what do you use for output data — scanf/printf or cout).

Also, using cout<<endl in C++ performs flush operation automatically.

link

answered 07 Dec '18, 20:30

yash005's gravatar image

2★yash005
11
accept rate: 0%

edited 07 Dec '18, 20:48

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×1,901

question asked: 07 Dec '18, 20:03

question was seen: 144 times

last updated: 07 Dec '18, 20:48