On the use of scanf function in C in VS, the solution to stop the program from skipping
1. In VS, scanf() function is basically replaced with scanf_ function;
2. When using scanf_s() function to input a string, there are three parameters, for example:
char str[10],ch;
printf("请输入字符串:");
scanf_s("%s",str,10);
ch = getchar();
printf("编码后您的密码串为:");
If this is not the case, there will be a problem that the program will stop when you press the enter key