-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jinnujohnson #4
base: master
Are you sure you want to change the base?
Jinnujohnson #4
Conversation
Message on Pull Request should explicit. |
} | ||
} | ||
private: | ||
int side,column,row; |
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.
There should be a new line before the public
or private
section.
int main() | ||
{ | ||
square obj; | ||
obj.square_data(); |
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 better names; think:
- Does
obj
have anything to do with the problem domain? - Isn't the function name
square_data()
redundant for a class namedSquare
? - Is a variable assignment must here?
Consider following a pattern while writing commit/PR messages. For instance try to use the verb first like in these:
Note: capitalization of words |
Please find 02.cpp file at generalise folder |
|
||
#include <iostream> | ||
#include "Square.cpp" |
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.
There should be a line before using namespace std;
top_bottomSide(draw_variable); | ||
} | ||
}; | ||
|
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.
Remove trailing new line.
Avoid accepting input using |
Indentation corrected in 2 index files of both folders.