Pair

Github Address address
Address operational requirements address
Twinning partners blog address https://www.cnblogs.com/wocaishizhangxu/p/11667145.html
Twinning partner school number 201731062129

1.1 twinning process

1.2 psp table

PSP2.1 Personal Software Process Stages It is expected to take (minutes) The actual time-consuming (minutes)
Planning plan 1200 1320
Estimate Estimate how long this task 1200 1320
Development Development (requirements analysis - specific coding) 730 830
Analysis Requirements analysis (including learning new technologies) 120 150
Design Spec Generate design documents 60 80
Design Review Design review (audit and students to design documents) 60 80
Coding Standard Code specification (norm for the current development) 60 70
Design Specific design 60 80
Coding Specific coding 360 400
Code Review Code Review 100 110
Test Test (self-test, modify the code, the code submitted) 130 140
Reporting report 100 120
Test Report testing report 60 90
Size Measurement Computing workload 40 60
Postmortem & Process Improvement Plan Later summarized, and process improvement plan 50 70
total total 1200 1320

Calculation module interface design and implementation

  • I used three classes, handlefile, readfile, program. My general idea is to first use readfile this class to read the file and use handfile to process the file. Wherein readfile comprises three functions
    : read (), check () , openfilname, read () for reading instructions, to check Check command is correct, the program instructions wordcount.exe -i unique file name and file .txt put in the debug folder. openfilename used for opening the file and the function handlefile
  • handlefile class includes six functions: handleC () for counts characters, handle
    W is () for counting the number of words is greater than 4 words, statistics rows handleL (), sort () pre sorting the word frequency and outputs ten. use () is used to call these functions. outputfile () to output statistics to result.txt debug folder inside.
  • flow chart

  • The key ideas. Here I primarily use regular expressions divide the text file, use a hash table to sort words

Code review process.

In the programming process, we encountered some problems. Such as file encoding format to use when reading different, resulting in a waste of time, it has been the variable name is not uniform.

Performance Analysis

operation result

to sum up

The difficult job for us great, some features are still difficult to achieve for us, for object-oriented master still
very shallow, we hope that the next can do better than this.

Guess you like

Origin www.cnblogs.com/robertqin/p/11670341.html
Recommended