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...
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...