The third practice of software engineering jobs

The third practice of software engineering jobs

github link

1.PSP table

PSP2.1 Personal Software Process Stages Estimated time consuming (minutes) The actual time-consuming (minutes)
Planning plan 30 10
Estimate Estimate how much time this task requires 240 360
Development Develop 180 120
Analysis Needs analysis (including learning new technologies) 60 80
Design Spec Generate design documents 60 30
Design Review Design Review 60 30
Coding Standard Code specifications (development of appropriate norms for the current development) 10 10
Design Specific design 10 10
Coding Specific coding 120 90
Code Review Code Review 60 10
Test Test (self-test, modify the code, submit modifications) 60 120
Reporting report 30 60
test repor testing report 30 30
Size Measurement Computing workload 30 20
Postmortem & Process Improvement Plan Later summarized, and process improvement plan 30 60

2. The calculation module #### Interface Design

#### 3. Performance Improvements

4. Test Unit

Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
---

5. Exception Handling

Processing file open failed and illegal grids exception:

    try
    {
        if (m < 3 || m>9) {
            throw - 1;
        }
        if (fin.is_open()==false) {
            throw - 2;
        }
        if (fout.is_open() == false) {
            throw - 3;
        }
            
    }
    catch (int e)
    {
        if (e == -2) {
            cout << "Not found Infile!";
            return 0;
        }
        else if (e == -3)
        {
            cout << "Can not open Outfile!";
            return 0;
        }
        else
        {
            cout << "Please enter right number 'm'!";
            return 0;
        }
    }
  1. If the file name entered incorrectly, an exception is thrown "Not found Infile!"
  2. If you can not open the file output folder, then throw "Can not open Outfile!"
  3. If the m input out of range, then throw "Please enter right number 'm'!"

Guess you like

Origin www.cnblogs.com/LIU151/p/11587164.html