11-14-2007, 03:35 AM
I am looking for a function which converts a character to it equivalent ascii code, i.e. "a" to 97. Could you please advise?
Convert a character to its ascii code
|
11-14-2007, 03:35 AM
I am looking for a function which converts a character to it equivalent ascii code, i.e. "a" to 97. Could you please advise?
11-14-2007, 06:49 AM
Like in C++. A string is array of bytes, and array elements are accessed using [].
str "a" int c=a[0] or int c='a'
11-14-2007, 03:05 PM
Many thanks for an accurate, valid and prompt reply, actually as usually with Gintaras
|
« Next Oldest | Next Newest »
|