汉诺塔问题 相当于递归调用, #include <stdio.h> using namespace std; long count=0; void hanio(int n,char a,char b,char c){