Tuesday, July 28, 2009

I need sourc code of a program in c++(Towers of hanoi)?

for example 1


we have 3 towers (A,B,C)





input





user enter 2





output





A-%26gt;B


A-%26gt;C


B-%26gt;C





example 2


we have 3 towers (A,B,C)


input





user enter 3





output





A-%26gt;C


A-%26gt;B


C-%26gt;B


A-%26gt;C


B-%26gt;A


B-%26gt;C

I need sourc code of a program in c++(Towers of hanoi)?
Do your own work or you will never learn.

apple

No comments:

Post a Comment