285
社区成员




1.To achieve a program function, it can extract keywords of different levels from the C or C++ code files that are read in.
2. Write a blog to record your work content and process.
1.Create a GitHub repository for the job.
2.Write the program and commit actively.
3.Iteratively update and optimize the code.
4.Complete your work and write a blog.
1. Basic requirement: output "keyword" statistics
2. Advanced requirement: output the number of "switch case" structures, and output the number of "case" corresponding to each group
3. Uplifting requirement: output the number of "if else" structures
4. Ultimate requirement: output the number of "if, else if, else" structures
Before completing the more difficult requirements, you need to complete the Lower requirements.
1.Use any of C++, Java, Python to complete the work.
2.Develop appropriate code specifications and conduct tests.
3.Use Git for version control.
1.Give the PSP form for this work.
2.Description of problem-solving ideas. This is the process of how to think and how to find information after getting the title at the beginning.
3.Design and implementation process. The design includes how the code is organized and the flow chart of the key functions.
4.Code description. Show the key code of the project and explain the idea.
5.Unit test screenshots and description.
6.Unit test coverage optimization and performance testing, performance optimization screenshots and descriptions.
7.Summarize this assignment.
In order to ensure that your code can help more people, and can be effectively managed and open source shared, please learn how to use GitHub first:
(1).Download Git.
(2).Learn basic Git commands.
(3).Create a repository on GitHub and upload this assignment, complete the requirements, and make at least 10 commits.
In order for other colleagues to read your code easily, please formulate your own code specifications and require that they not deviate from the mainstream code specifications: please refer to alibaba-java-style-guide/Google-C++-style-guide/Python PEP8, Develop your programming specifications from the following perspectives and write them into Markdown files.
- indentation
- Variable naming
- Maximum number of characters per line
- Maximum number of function lines
- Function and class naming
- constant
- Blank line rule
- Annotation rules
- Space before and after operator
- Other rules
c language test file:
#include <stdio.h>
int main(){
int i=1;
double j=0;
long f;
switch(i){
case 0:
break;
case 1:
break;
case 2:
break;
default:
break;
}
switch(i){
case 0:
break;
case 1:
break;
default:
break;
}
if(i<0){
if(i<-1){}
else{}
}
else if(i>0){
if (i>2){}
else if (i==2) {}
else if (i>1) {}
else {}
}
else{
if(j!=0){}
else{}
}
return 0;
}
Output format: The code above is used as an example
total num: 35
switch num: 2
case num: 3 2
if-else num: 2
if-elseif-else num: 2
1. TA can’t notice all students. If your blog can impress TA, you can get higher remark.
2. If you have some question, you should ask directly in the QQ group and you’d better not make a private chat with TAs or tutor.
3. Please issue your homework in the section of assignment on CSDN.
4. The Link of each assignment you would accomplish must be submit to Moodle, or you will lose the score of the assignment.
5. Each assignment submitted to CSDN must be completed in English.
A total of 32 keywords are defined:
auto | break | case | char | const | continue | default | do |
---|---|---|---|---|---|---|---|
double | else | enum | extern | float | for | goto | if |
int | long | register | return | short | signed | sizeof | static |
struct | switch | typedef | union | unsigned | void | volatile | while |
http://t.csdn.cn/0YBKU
FZU:832001317 MU:20122543
https://bbs.csdn.net/topics/608790020
FZU:832002220 MU:20123531
https://bbs.csdn.net/topics/608837177
FZU:832001218 MU:20124643
EE308_Lab1-2 FZU:832001207 MU:20124546
https://bbs.csdn.net/topics/608837372
EE308_Lab1-2 FZU:832002201 MU:20123825
https://bbs.csdn.net/topics/608790063
EE308_Lab1_2 FZU ID:832001221 MU ID:20123957
Blog Link:: https://bbs.csdn.net/topics/608837175?spm=1001.2014.3001.6377
Lab 1-2 FZU ID:832001101 MU ID:20122225
BLOG LINK:https://bbs.csdn.net/topics/608837939
Lab1-2 FZU:832001227 MU:20124058
https://bbs.csdn.net/topics/608837184?spm=1001.2014.3001.6377
LAB1-2 薛博阳 https://bbs.csdn.net/topics/609018708
Lab1-2 FZU ID:832001119 MU ID:20124279
Blog link:https://bbs.csdn.net/topics/608814278
Lab1-2 FZU ID:83200124 MU ID:20124732
Blog link:https://bbs.csdn.net/topics/608837745
Lab1-2 孙福泽 https://bbs.csdn.net/topics/608772691
Lab1-2 黄磊 https://bbs.csdn.net/topics/608837273
LAB1-2 陈泓昊 https://bbs.csdn.net/topics/608823895
LAB1-2 周俊敏 https://bbs.csdn.net/topics/608837543