Programming Language:Python Because the problem is mainly object-oriented, and I systematically learned object-oriented C++ programming on the basis of Python, so I use Python to do this laboratory.
3.Design and implementation process
we need to know the keywords about C++:
auto
break
case
char
levelst
leveltinue
default
do
double
else
enum
extern
float
for
goto
if
int
long
register
return
short
signed
sizeof
stastic
struct
switch
typedef
union
unsigned
void
volatile
while
-The file is read in the specified address -Find the keywords -Calculate the number of keywords and the times of switches and cases -Use pointer function probably
4.Design and implementation process
Five modules, each encapsulated in a function, and as the level of completion increases, the implementation of each functional level depends on the implementation of the previous functional level. The diagram below shows how the code is organized, the arrows indicate the level of completion, all the functions defined in the code in the flowchart.