Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
string to interger
#1
code: str s="12"
int i=val(s)

the above converts string var to integer !
but how to convert integer into string varaible ?

eg: int i=12
str s="i"

Now why S is i , not 12 ??????
Confusedhock: Cry
#2
If it is variable, don't use "".

str s=i


Forum Jump:


Users browsing this thread: 1 Guest(s)