285
社区成员




The Link Your Class | https://bbs.csdn.net/forums/MUEE308FZU202201 |
---|---|
The Link of Requirement of This Assignment | https://bbs.csdn.net/topics/608734907 |
The Aim of This Assignment | Keywords extraction and counting |
MU STU ID and FZU STU ID | 20124066 & 832002123 |
MY GITHUB:https://github.com/taohhoat/EE308_LAB12
Personal Software Process Stages | Estimated Time/minutes | Completed Time/minutes |
---|---|---|
Planning | 25 | 30 |
Estimate | 25 | 30 |
Development | 50 | 40 |
Analysis | 30 | 30 |
Design Spec | 30 | 20 |
Design Review | 10 | 10 |
Coding Standard | 15 | 10 |
Design | 10 | 10 |
Coding | 70 | 85 |
Code Review Planning | 20 | 20 |
Test | 10 | 30 |
Reporting | 65 | 70 |
Test Report | 15 | 30 |
Size Measurement | 15 | 20 |
Postmortem & Process Improvement | 40 | 40 |
total | 430 | 475 |
I use c++ to solve the problem.
I know the most different part in the project is that we need frequently use String and char [] to solve the problem.
First, i review the information about Import a directory usage and how to deal with the content in a ".txt" line by line.
Second, i clearly draw a picture which shows the connection between 4 steps.
I use draw.io to picture a link map.
step 3 and 4:
It is hard to discuss because "if else " and "if else if " have same part. So we can use a double loops. First loop is to judge whether " if else if " is finding. If is found, no more operation. Else judge the another "else ".
when the second one finds the else and then finds the if, if follows, it will print the Boolean to false. I check to see if there is an if or else if form stored at the top of the stack, and count if there is, otherwise it doesn't work
Performance optimization:
stack using is not a better way than loop, it cause more time because of it's mechanism .Then i may use two loop to replace the process of dealing with the step3 and 4.
It is the first time i use Git. I know the advantages of Git well which allow me to change and optimize my code better in the next time. And i use github to save my code, it is better to see the change in my process.