(持续更新中.......)
1).错误提示:调试断言失败
Microsoft Visual C++Runtime Library
Debug Assertion Failed!
Program:
...c_onlinejudge\guess_the_number\x64\Debug\guess_the_number.exe
File:minkernel\crts\ucrt\inc\corecrt_internal_stdio_input.h
Line:1567
Expression:result pointer !nullptr
For information on how your program can cause an assertion
failure,see the Visual C++documentation on asserts.
(Press Retry to debug the application)
错误原因:scanf 函数当中忘记加&(取地址符号)
加上&符号就好了,因为编译时VS没有报错,所以花了好长时间才找到问题,小伙伴们也要多多注意