Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
string to integer
#1
AAAAHHHHHHH......I've done this or seen it but I can't remember how...
how do i set and integer var to the value in a string variable (its a number)?
#2
Use the val function.

Code:
Copy      Help
str s="12"
int i=val(s)
#3
uuuuhhhhhhgggggg.....val!!!

THANKS!!!


Forum Jump:


Users browsing this thread: 1 Guest(s)