您的位置:首页 > 编程语言 > C#

c# 中字符和ASCII之间的相互转换

2005-10-22 13:34 369 查看
string mapIndex = Request.QueryString["map_index"];
string firstIndex = mapIndex.Substring(0,1);
string lastIndex = mapIndex.Substring(1);
string northIndex1 = string.Empty;
if(lastIndex == "1")
else
string northIndex = firstIndex + northIndex1; //向上
string eastIndex1 = string.Empty;
if(firstIndex == "j")
else
string eastIndex = eastIndex1 + lastIndex;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: