-
Notifications
You must be signed in to change notification settings - Fork 93
toh #83
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
toh #83
Conversation
@@ -0,0 +1,24 @@ | |||
#include<stdio.h> | |||
#include<conio.h> |
There was a problem hiding this comment.
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.
void main() | ||
{ | ||
int n; | ||
printf("Enter the number of discs:\n"); |
There was a problem hiding this comment.
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.
#include<stdio.h> | ||
#include<conio.h> | ||
#include<string.h> | ||
void TOH(int n,char s,char d,char i) |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
No description provided.