#15578: C++請進來


wish.rirf@gmail.com (C++ 與我)

School : 臺北市私立薇閣高級中學
ID : 82132
IP address : [36.224.41.96]
Last Login :
2021-08-07 19:29:31
a779. 1. Reversal of Field -- HP CodeWars2008 | From: [223.136.28.120] | Post Date : 2018-10-14 18:54

C++可用function:

<cctype>isalnum();

<cctype>tolower();

str.erase();

再用erase的時候記得你把str[i]erase掉後,str[i+1]就會變成str[i](我debug這點3小時!!!!!!)

(C++11後的string都不用轉成char[]就可直接像char[]使用)

 
ZeroJudge Forum