获取字符串的asc码

int asc(str s,int n);
//s:字符串
//n:字符串的位置 0表示第一个字符
//返回:对应位置字符的asc码

示例

str s=“ABC";
int a;
a=asc(s,0);  //0x41