while(scanf("%d %d", &i, &j) == 2)
{
}

cin দিয়ে কীভাবে এমন করে ইনপুট নিতে পারবো?

asked 14 Dec '17, 17:34

BAUST_Prince's gravatar image

BAUST_Prince
555


while(cin >> a >> b) {
     // do 
}
permanent link

answered 14 Dec '17, 17:46

menon's gravatar image

menon
4.7k333

Your answer
toggle 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

Question tags:

×131

question asked: 14 Dec '17, 17:34

question was seen: 256 times

last updated: 14 Dec '17, 17:46