{
  "type": "code_options",
  "author": "csdn.net",
  "source": "solution.md",
  "exercise_id": "74677d031c15454ba08620f7584d319c",
  "keywords": "B树,算法高阶,高级数据结构,B树上的基本操作",
  "title": "从键盘输入任意一个大写英文字母，要求它在26个字母表中的位置和其后面的第四个字母",
  "desc": [
    {
      "content": "\n例如：程序运行\n输入：B<回车>。\n输出：B在第2个位置，其后面第四个字母是F",
      "language": "markdown"
    }
  ],
  "answer": [
    {
      "content": "",
      "language": "cpp"
    }
  ],
  "prepared": [
    [
      {
        "content": "",
        "language": "cpp"
      }
    ],
    [
      {
        "content": "",
        "language": "cpp"
      }
    ],
    [
      {
        "content": "",
        "language": "cpp"
      }
    ]
  ],
  "template": {
    "content": "#include <stdio.h>\nint main(){\n\tchar c,c2;\n\tprintf(\"输入:\");\n\tc = getchar();\n\tint m=0,n=0;\n\tif(c>='A'&& c<='z')\n\t{\n\t\tm = c - 'A' + 1;\n\t\tif(m < 23)\n\t\t{\n\t\t\tc2 = c + 4;\n\t\t\tn = m+4;\n\t\t}\n\t}\n\tif(n > 0)\n\t\tprintf(\"%c在第%d个位置,其后面第四个字母是%c\\n\",c,m,c2);\n\telse\n\t\tprintf(\"%c在第%d个位置,其后面没有第四个字母\\n\",c,m);\n\treturn 0;\n}",
    "language": "cpp"
  },
  "node_id": "dailycode-ed083cfb659044dda203cc8c52aac153",
  "license": "csdn.net",
  "created_at": 1637894160,
  "topic_link": "https://bbs.csdn.net/topics/600470277"
}