Since we have the standard library, or std::cin, getting user input is fairly straight forward (other than the memory corruption you have to worry about).
And ofc there's other ways to get input. This is just one simplified example.
Tutorial Playlist:
https://youtube.com/playlist?list=PLWYGofN_jX5Apmb8pJUD8NN3KskHW2lcy
Repository:
https://github.com/RoundBearChoi/CPP_Tutorial_Projects
Any questions/comments? Join us on discord:
https://discord.gg/hAFTgcA
std::cin: (0:00)
memory corruption: (1:26)
std::cin.width: (3:11)
homework: (5:24)
Social
twitter: https://twitter.com/roundbeargames
facebook: https://facebook.com/roundbeargames17
hive: @roundbeargames/posts
reddit: https://reddit.com/user/roundbeargames
linkedin: https://linkedin.com/in/jangwon-choi-15041a9a
Patreon:
https://patreon.com/roundbeargames
Channel Memberships:
https://youtube.com/roundbeargames/join