Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C++
Plzz tell me the decimal values of these strings. 10,20,30,40,50,60,70,80,90,100

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

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.
 
Share this answer
 
v2
Comments
Sweety Khan 19-Jun-10 4:34am    
at somewhere i initialize a variable "value" of type string. to check a condition, if i check like this it gives error
if(value=="50")

so i wanna know its decimal equivalent so that i can check like this
if(value==50)
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[^].
 
Share this answer
 
Comments
Sweety Khan 19-Jun-10 6:52am    
thanks
use _tcscmp function to compare those strings. if still there some doubt regarding this function go to MSDN and check the syntax.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900