订阅字母数字是一种常见/有效的技术吗?什么是隐含的转换?例如:
#include <iostream>
using namespace std;
int main()
{
int k(2);
cout << "Hello"[k] << endl;
cout << (k-1)["Hello"] << endl;
// your code goes here
return 0;
}
Run Code Online (Sandbox Code Playgroud) c++ ×1