in php you can make an array item like this $bob["hello"] instead of having to use $bob[0] is this possible in classic ansi C ?
thanks for ya help people
Printable View
in php you can make an array item like this $bob["hello"] instead of having to use $bob[0] is this possible in classic ansi C ?
thanks for ya help people
Nope, it's not possible.
(In case you're still interested, you can use the Map template class from the Standard Template Library to achieve the same effect.)
(But only in C++. In C, you have to use a procedural implementation of a map, if you can find one. Oh, and the STL map is called map, not Map.)
K thanks people just wanted to know cos im working on converting this to c from php
will just have to change my approach
thanks again
senorbadger
You could use C++...