BlockLune's Blog

Home Tags About |
  • EN
  • 中

Posts with tag std-cin

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?

No more posts to load.

BlockLune's Blog

Powered by 🚀 Astro & ❤️ AstroDraculaBlog