HW01-Describe an error from my past projects

The error about the identifying information

I tried to write an program which called To Do List. It is about that users could add, modify and delete the things on the list. And I use database to record the important information. When executing the program and giving the correct instructions, the information about database will refresh immediately.

 

The first time I tested the program, the function of adding and modifying are successful. However, when I choose the thing I want to delete and press the button of confirm, it just disappeared on the current page. Then I refresh the website,the words doesn’t delete successfully.

 

In order to find the reason, I try to change the cases of testing many times. Finally, I find it is because that the program can’t identify the space between words. As a result, it can’t correspond the infofmation on database and delete the words in it. Meanwhile, I find that when I input the special symbols such as ‘——’, ‘……’ or ‘。’, which put on both the end of the sentence and the begin of the follow sentence, the compiler could identify the information and refresh the things in database successfully.

 

Finally, I tried to modify the function of deleting which needn’t to input special symbols each time. As a result, I add the codes about output information. Users input the information normally, and the output which show the whole things in the list which have the special symbols in the begin and the end.

转载于:https://www.cnblogs.com/lin-ZYX/p/6474532.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值