• Курсы
  • Компилятор кода
  • Обсуждения
  • Цены
  • Teams
Menu
0

What cin.clear() and cin.ignore() do?

In c++ I came across these two built-in functions. How to use them?

c++forum
5th Jul 2018, 6:42 AM
Deep Patel
Deep Patel - avatar
2 ответов
+ 5
https://stackoverflow.com/questions/5131647/why-would-we-call-cin-clear-and-cin-ignore-after-reading-input
5th Jul 2018, 7:48 AM
hinanawi
hinanawi - avatar
+ 3
Thanks @hinanwi
5th Jul 2018, 8:10 AM
Deep Patel
Deep Patel - avatar

Часто задают такие вопросы?

Учитесь эффективнее, бесплатно:

  • Введение в Python

    7.1M учащихся

  • Введение в Java

    4.7M учащихся

  • Введение в C

    1.5M учащихся

  • Введение в HTML

    7.5M учащихся

Смотреть все курсы
Актуальное сегодня
Hello can anyone help me to learn gdscript
0 Votes
What coding language should i use to make a custom coding language?
0 Votes
hello world i need help
2 Votes
Any easy game ideas for beginners?
0 Votes
Hello! I’m 15 and I want to learn programming to become a web developer. Any advice?
0 Votes
Which is more important CSS vs HTML vs JS?
1 Votes
How many courses are there on Sololearn
1 Votes
help string permutation
0 Votes
Code is wrong somehow, I need help!
0 Votes
hi
1 Votes