3 ms·
No C++ programmer who has been around the block more than halfway should do cin >> a; and assume that it works. But also ... sscanf (the_buffer, "%d
by PaulDavisThe1st 2y ago
No C++ programmer who has been around the block more than halfway should do
cin >> a;
and assume that it works.
But also ...
sscanf (the_buffer, "%d", &a);
doesn't help the problem in any substantive way.