hannuotafeidigui.cpp

来自「关于数据结构的各章节的c原代码实现」· C++ 代码 · 共 41 行

CPP
41
字号
// hannuotafeidigui.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
typedef struct
{
	int nparam;
	char fromparam;
	char toparam;
	char auxparam;
}elemtype;
typedef struct
{
 int top;
 elemtype item[50];
}qstype;
void simtowers(int n,char frompeg,char topeg,char auxpeg);
int main(int argc, char* argv[])
{   
	int n;
	printf("\n输入盘的个数:");
	scanf("%d",&n);
	simtowers(n,'x','z','y');
	return 0;
}
void simtowers(int n,char frompeg,char topeg,char auxpeg)
{
elemtype currarea;
qstype s;
char temp;
short int i;

s.top=-1;
currarea.nparam=0;
currarea.fromparam='';
currarea.toparam='';
currarea.auxparam='';

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?