Inactive Tutor answered 04/02/20
Tutor
New to Wyzant
use fstream, read the whole line into a buffer and then do something like this:
count =0
for (int I =0 ;I<strlen(buff); I++)
if (buff[I]==' ')
count++;
Rsg S.
asked 03/27/20Inactive Tutor answered 04/02/20
use fstream, read the whole line into a buffer and then do something like this:
count =0
for (int I =0 ;I<strlen(buff); I++)
if (buff[I]==' ')
count++;
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.