B
Ben
I have an int variable (always <100) that I want to convert to a two character string, e.g.
if myint = 1, mystr = "01"
if myint = 81, mystr = "81"
At the moment I can't figure out how to do this cleanly.
Then I wish to push a bunch of these strings into an array, for example:
typedef char LABEL[3];
LABEL mystrArray[100];
But having read a couple of tutorials I am still no clearer on the best way to do an "array of strings" in this situation, nor
how to do it.
Any help much appreciated!
cheers,
Ben
if myint = 1, mystr = "01"
if myint = 81, mystr = "81"
At the moment I can't figure out how to do this cleanly.
Then I wish to push a bunch of these strings into an array, for example:
typedef char LABEL[3];
LABEL mystrArray[100];
But having read a couple of tutorials I am still no clearer on the best way to do an "array of strings" in this situation, nor
how to do it.
Any help much appreciated!
cheers,
Ben