Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
#include <iostream> #include <windows.h> using namespace std; int main() { wstring my_str(L"El Niño "); cout << my_str.find_last_not_of(L' '); }
此代码返回 6 但不应返回 7 ?
指数从零开始。最后一个非空格字符的索引位于索引 6:
L"El Niño " ^ 0123456