📜  索引字符串 c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.759000             🧑  作者: Mango

代码示例1
#include 
#include 

int main(){
  //index string by using brackets []
  std::string string = "Hello, World!";
  //assign variable to string index
  char stringindex = string[2];
  
}