和二叉树的中序遍历一个做法
#include <iostream>
#include <cstring>
#include <string>
#include <sstream>
using namespace std;
/*
FJ的字符串
输入格式
仅有一个数:N ≤ 26。
输出格式
请输出相应的字符串AN,以一个换行符结束。输出中不得含有多余的空格或换行、回车符。
*/
string t;
void judge(int n)
{
if(n==1)
{
cout<<"A";
return;
}
judge(n-1);
t='A'+n-1;
cout<<t;
judge(n-1);
}
int main()
{
int n;
cin>>n;
judge(n);
return 0;
}