All pastes #774020 Raw Edit

Mine

public cpp v1 · immutable
·published 2007-11-14 22:30 UTC
rendered paste body
#include <cstdlib>#include <iostream>void move(int,int,int,int);int main(int argc, char *argv[]){    move(4, 1, 2, 3);    system("PAUSE");    return EXIT_SUCCESS;}void move(int discs, int start, int spare, int end){     if(discs<2)     {         cout << "Move disc " << discs << " to pole " << end << "\n";     }     else     {         move(discs -1, start, spare, end);         cout << "Move disc " << discs << " to pole " << end << "\n";         move(discs -1, start, spare, end);     }}