BlockLune's Blog

首页 标签 关于 |
  • EN
  • 中

带有 input-validation 标签的文章

Use std::cin.ignore() to keep the user typing until the input meets the requirements

2023-03-25
ccppinput-validationstd-cin

I used to control users' input by making the input a string and process it later. But today, my friend posed this question to me: Can we control input without a char array or string class?

没有更多文章可加载。

BlockLune's Blog

Powered by 🚀 Astro & ❤️ AstroDraculaBlog