Home > Back-end >  BCB statistical TXT in the first line of the number of strings
BCB statistical TXT in the first line of the number of strings

Time:10-02

TXT content description, for example, is as follows:

The first column teacher student course
Zhang SAN NULL English 1

I want to know the number of strings in the first line, the example is 4, it's as simple as that, should use '\ n' or something,
I'm too food won't ah, warrior come quickly! To the source code!!

CodePudding user response:

Too lazy, no one will answer you, also won't have you do things

CodePudding user response:

before the program feel stupid like a pig, but for the killing will not programming project to do!!!!!!

CodePudding user response:

Find the first
\ \ d a

CodePudding user response:

Getline reads a line (absolute line, data buffer to you can accommodate the biggest, or string)

Analysis several Spaces and tabs split string to go,
  • Related