adding indent rules
This commit is contained in:
@@ -198,10 +198,12 @@ To summerize the rules, in this homework, no sorting is needed.
|
||||
|
||||
### Indentation
|
||||
|
||||
Just like youtube, we use indentations to display the tree structure of the comments. More specifically, a child comment should be indented by four space characters relative to its parent comment. Sibling comments should have the same identation.
|
||||
Just like youtube, we use indentations to display the tree structure of the comments. The following image is an example from youtube:
|
||||
|
||||

|
||||
|
||||
In this assignment, we define that a child comment should be indented by four space characters relative to its parent comment. Sibling comments should have the same identation.
|
||||
|
||||
## Program Requirements & Submission Details
|
||||
|
||||
In this assignment, you are required to maintain the comments in tree nodes, each comment should be stored in one tree node. You are NOT allowed to use any data structures we have not learned so far, but feel free to use any data structures we have already learned, such as std::string, std::vector, std::list, std::map, std::set, std::pair. **You must use recursion in your program in at least one of your functions.**
|
||||
|
||||
Reference in New Issue
Block a user