Visual C++“调试断言失败" [英] Visual C++ "Debug Assertion Failed"

查看:126
本文介绍了Visual C++“调试断言失败"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Visual Studio 2010 编译了一个代码,然后我尝试运行它,不幸的是在测试过程中有时我会出错调试断言失败!"....Expression (unsingned)(c+1)<=256

I had compiled a code using Visual Studio 2010, then I tried to run it, unfortunately during testing sometimes I had errors "Debug Assertion Failed!"....Expression (unsingned)(c+1)<=256

然后我尝试了相同的场景,但使用 gcc 并且它运行没有任何问题.知道这个问题怎么样吗?

Then I tried the same scenario but using gcc and it ran without any problem. any idea how about this problem?

推荐答案

您正在使用一个整数调用 isalpha() 或 isdigit() 之类的函数,该整数的值不是 0-255 的单个字节.

You're calling a function like isalpha() or isdigit() with an integer whose value is not a single byte 0-255.

这篇关于Visual C++“调试断言失败"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆