Reading Comma Delimited Text File Into Array

前端 未结 2 616
北荒
北荒 2021-01-23 12:16

I am trying to write a program in C++ that emulates a college enrollment system, where the student enters their ID, and the program searches a text file for their information, a

2条回答
  •  时光说笑
    2021-01-23 12:35

    split(string, seperator)
    
    split("918273645,Steve,Albright,ITCS2530,MATH210,ENG140", ",")
    split("123456789,Kim,Murphy,ITCS2530,MATH101", ",")
    split("213456789,Dean,Bowers,ITCS2530,ENG140", ",")
    split("219834765,Jerry,Clark,MGMT201,MATH210", ",")
    

    I know very little C++, but I remember this command.

提交回复
热议问题