gpt4 book ai didi

c++ - 在 C++ 中拆分字符串需要帮助

转载 作者:行者123 更新时间:2023-11-28 07:48:42 26 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
Splitting a string in C++

我需要一个关于如何在不使用任何外部库的情况下获取一串文本并根据特定字符将其拆分的建议,在本例中为“,”

文本行是:

Amadeus,Drama,160 Mins.,1984,14.83
As Good As It Gets,Drama,139 Mins.,1998,11.3
Batman,Action,126 Mins.,1989,10.15
Billy Elliot,Drama,111 Mins.,2001,10.23
BR,SF,117,1982,11.98
Shadowlands,Drama,133 Mins.,1993,9.89
Shrek,Animation,93 Mins,2001,15.99
Snatch,Action,103 Mins,2001,20.67
The Lord of the Rings,Fantasy,178 Mins,2001,25.87

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com