PSP2.1 | Personal Software Process Stages | 预估耗时(分钟) | 实际耗时(分钟) |
---|---|---|---|
Planning | 计划 | 30 | 20 |
· Estimate | · 估计这个任务需要多少时间 | 10 | 10 |
Development | 开发 | 1400 | 1700 |
· Analysis | · 需求分析 | 240 | 300 |
· Design Spec | · 生成设计文档 | 20 | 0 |
· Design Review | · 设计复审(和同事审核设计文档) | 30 | 0 |
· Coding Standard | · 代码规范(为目前的开发制定合适的规范) | 30 | 30 |
· Design | · 具体设计 | 120 | 180 |
· Coding | · 具体编码 | 600 | 720 |
· Code Review | · 代码复审 | 60 | 50 |
· Test | · 测试(自我测试,修改代码,提交修改) | 300 | 420 |
Reporting | 报告 | 120 | 180 |
· Test Report | · 测试报告 | 50 | 30 |
· Size Measurement | · 计算工作量 | 10 | 10 |
· Postmortem & Process Improvement Plan | · 事后总结,并提出过程改进计划 | 120 | 120 |
Total | 合计 | 1740 | 2070 |
void judge() {
if (wflag == 1 && cflag != 1 && rflag != 1) {
wchain();
}
else if (wflag != 1 && cflag == 1 && rflag != 1) {
cchain();
}
else if (wflag == 1 && cflag == 1 && rflag != 1) {
cout << "ERROR, -w and -c can not be both requested!" << endl;
}
else if (rflag == 1) {
rchain();
}
}
if ((fopen_s(&fp, cpath, "r")) != 0) {
printf("file not exist\n");
}
for (int ar = 1; ar < argv; ar++) {
if (argc[ar][0] == '-') {
if (argc[ar][1] == 'w') {
wflag = 1;
if (argc[ar + 1][0] != '-') {
strcpy_s(cpath, argc[ar + 1]);
}
}
else if (argc[ar][1] == 'c') {
cflag = 1;
if (argc[ar + 1][0] != '-') {
strcpy_s(cpath, argc[ar + 1]);
}
}
else if (argc[ar][1] == 'r') {
rflag = 1;
}
else if (argc[ar][1] == 't') {
tflag = 1;
top = argc[ar + 1][0];
}
else if (argc[ar][1] == 'h') {
hflag = 1;
hop = argc[ar + 1][0];
}
}
}
在读入参数之后,进行命令行参数的处理,判断参数的正确性,并根据参数来分别调用Core模块中的接口进行计算。
缺点:个人习惯不同,时间也难以统一,有时会带来一些麻烦。
缺点:个人能力薄弱。
缺点:比较专心,交流较少。
原文:https://www.cnblogs.com/sxz1606/p/10534342.html