开发者

How we can compare if two numbers are in any range in MFC(VC++)?

开发者 https://www.devze.com 2023-01-26 01:12 出处:网络
How we can compa开发者_开发技巧re if two numbers are in any range in MFC(VC++)? I want to compare if 172 and 185 lies in range 128-191 ?

How we can compa开发者_开发技巧re if two numbers are in any range in MFC(VC++)? I want to compare if 172 and 185 lies in range 128-191 ? How i can do this in VC++? Thanks.


Usually you just compare the input to the two ends of the range. if (lower < x && x < upper) ...

0

精彩评论

暂无评论...
验证码 换一张
取 消