Recent content by NickPatey
-
N
Comp Sci Towers of Hanoi Problem in C++: Solving the Classic Puzzle with Recursion
Nvm figured it out haha: // towers.cpp : Defines the entry point for the console application.// #include <stdafx.h> int move (int n, int sp, int ep, int hp); int main(void) { int move (int n, int sp, int ep, int hp); int n = 0; int sp = 0; int ep = 0; int hp = 0; int wait...- NickPatey
- Post #2
- Forum: Engineering and Comp Sci Homework Help
-
N
Comp Sci Towers of Hanoi Problem in C++: Solving the Classic Puzzle with Recursion
I have to write a C++ program for the problem listed below, but i can't get it working properly, can anyone find the problem: Question: 5.36 (Towers of Hanoi) Every budding computer scientist must grapple with certain classic problems, and the Towers of Hanoi (see Fig. 5.19) is one of the...- NickPatey
- Thread
- C++
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help