我有一個要標記的字符串。但是C strtok()函數要求我的字符串是char*。我該如何簡單地做到這一點?我試過了:token = strtok(str.c_str(), " "); 之所以失敗,是因為它將變成了const char*,而不是char* 查看完整描述