First let me make complaints about it.
scanf_s. You really wasted a lot of my time
At first I was going to use scanf_S when inputting floating-point data and character data, the system always reports an error, that is, there is no error in the generation solution, but debugging is not good, eh, it is not good.
That’s it. I didn’t know at first. I thought it was a floating point problem. As a result, I haven’t worked it out for a long time,
Later, by chance, I found that it was actually the problem of character data. When I was using scanf_s, the length of character data should be specified, otherwise an error will be reported, but scanf is not used. In other words, the eighth line should be changed in this way
scanf_s("%f%c%f", &a, &op,1, &b);
The specified character length is one.
I’ll check the information and update it.
Read More:
- [Solved] GDAL+OPENCV often reports errors when processing remote sensing impacts
- WPF path = (validation. Errors) [0]. Errorcontent reports a binding error
- Visual Studio 2012 error C4996: ‘scanf’: This function or variable may be unsafe.
- Eclipse start project error: Errors occurred during the build. Errors running builder ‘Integrated External Tool Builder’ on…
- [Solved] RuntimeError: Error(s) in loading state_dict for Model: Missing key(s) in state_dict
- [Solved] RuntimeError: Error(s) in loading state_dict for FasterRCNN: Missing key(s) in state_dict:……
- IDEA reports an error. Error XXX reports an error. The class cannot be found
- [Solved] hello.s:15 Error: junk at end of line, first unrecognized character valued 0x8
- The Ajax return value reports an error, and the spring boot development Ajax return value reports an error
- Common problems and solutions for CheckStyle errors
- [Solved] go cobra Error: required flag(s) “pkg-name” not set
- Flask Startup Error: s.bind(server_address)PermissionError: [Errno 13] Permission denied
- K8s ❉ Error: cannot be handled as a** [How to Solve]
- CCS Error: gmake: Target ‘all‘ not remade because of errors.
- [Solved] pod CDN: trunk Repo update failed – 56 error(s):
- K8s initializing the master & worker node error [How to Solve]
- How to Solve kubelet starts error (k8s Cluster Restarted)
- [Solved] k8s kubeadmin init Error: http://localhost:10248/healthz‘ failed
- Net use Errors Explanation
- [Solved] k8s Error: Back-off restarting failed container