mardi 3 janvier 2017

How to fetch the column number in c++?

I want to know the column number when a heading is given.

For example for S Mac Bonded State SIS Qos(DS-US) CPE MAC address IP Address

Column 1 is S, 2 is Mac, 3 is Bonded, 4 is State, 5 is SIS, 6 is Qos(DS-US), 7 is CPE, 8 is MAC address and 9 is IP Address

The problem is, if the split based on space" ", MAC and address will be considered as different columns which is not correct.

Whats is the best way to solve the problem?

Aucun commentaire:

Enregistrer un commentaire