字符串的十进制值 [英] decimal values of strings

查看:103
本文介绍了字符串的十进制值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Plzz tell me the decimal values of these strings. 10,20,30,40,50,60,70,80,90,100

waiting for ur reply...... :)

推荐答案

这些值是您看到的数字,即10,20,30,40,50,60,70,80,90,100!

尝试改写您的问题以解释您要做什么,或者您想解决什么问题.
The values are the numbers you see, i.e. 10,20,30,40,50,60,70,80,90,100!

Try rephrasing your question to explain what you are trying to do, or what problem you are trying to solve.


以下代码将不起作用:
The following code will not work:
TCHAR* value;
value = "50";
if (value == "50")
...


您不能使用==运算符进行字符串比较.您需要使用字符串比较函数之一 [ ^ ].


You cannot do string comparisons with an == operator; you need to use one of the string comparison functions[^].


使用 _tcscm p函数比较这些字符串.如果对该功能还有疑问,请转到MSDN并检查语法.
use _tcscmp function to compare those strings. if still there some doubt regarding this function go to MSDN and check the syntax.


这篇关于字符串的十进制值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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