Hanoi(漢諾)塔問題

//古代有一個梵塔,塔內有3個座A,B,C,A上有4個盤子,老和尚想把這64個盤子移到C座,每次只移動一個盤,且在移動過程當中3個座上始終保持大盤在下,小盤在上。code #include<stdio.h> int main() { void hanoi(int n, char one, char two, char three); int num; printf("Please input
相關文章
相關標籤/搜索