获取字符串中某一位的Asc码

int idxof(str s,int n);

示例

int a;
a=idxof("ABC",0);   //a=0x41

注意