Hi,
If I have a string such as 'npi4'. How do I get the '4' out of it and into a
matrix?
I tried x[0][0] = s[3] where x is the storage matrix and s is the string
'npi4' but this stores 42. If I use x[0][0] = string(s[3]) the character is
correct but the value won't get stored in the matrix since it is a string.
What about 'npi412_s'? How get '412' out of that string as an int?
Any ideas? Thanks.
Vincent
|