Skip to content

toh#83

Open
Mukheem1603 wants to merge 3 commits into
xennygrimmato:masterfrom
Mukheem1603:master
Open

toh#83
Mukheem1603 wants to merge 3 commits into
xennygrimmato:masterfrom
Mukheem1603:master

Conversation

@Mukheem1603
Copy link
Copy Markdown

No description provided.

Comment thread Towers of Hanoi/TOH.cpp
@@ -0,0 +1,24 @@
#include<stdio.h>
#include<conio.h>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This header file is not required.

Comment thread Towers of Hanoi/TOH.cpp
void main()
{
int n;
printf("Enter the number of discs:\n");
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use std::cout and std::cin instead of printf and scanf.

Comment thread Towers of Hanoi/TOH.cpp
#include<stdio.h>
#include<conio.h>
#include<string.h>
void TOH(int n,char s,char d,char i)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TOH can be renamed to something more verbose.

Copy link
Copy Markdown
Owner

@xennygrimmato xennygrimmato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some minor comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants