stupid question about std::cin
C / C++ / MFC
4
Posts
3
Posters
0
Views
1
Watching
-
Hi ! I'm sure this is a stupid question, but, if I do this : char Buffer[10]; std::cin >> Buffer; How can I make sure that the input won't be longer than the buffer ? Jérôme
-
Hi ! I'm sure this is a stupid question, but, if I do this : char Buffer[10]; std::cin >> Buffer; How can I make sure that the input won't be longer than the buffer ? Jérôme
-
Hi ! I'm sure this is a stupid question, but, if I do this : char Buffer[10]; std::cin >> Buffer; How can I make sure that the input won't be longer than the buffer ? Jérôme
:~
-
Thanks ! Jerome