语法格式:
    for(declaration : expression)
    {
    statement
    }

    1. string str("some string");
    2. // 每行输出str中的一个字符
    3. for(auto c : str) // 对于str中的每个字符
    4. {
    5. cout << c << endl;
    6. }