c# 中文转拼音

来源:学生作业帮助网 编辑:作业帮 时间:2024/06/06 05:33:38
c# 中文转拼音
xuRMKBA+yBPwY !V1Wz 3GE@Z-$hۢVmZIUyIX63̹17' 4o/yv=?ʍ]Y/š_]~GՌv v6VTIxRש2rTF:Rp*E!Q"}D7D_v0I$a,J1J3r[8H #Ph QkR™/fgӲ A րzG%kv$h Tk=-\N۵!lAziUԚТZ[2Z r("MDr;hY BPHh& (0H]w:^NRX-&8&Il Xs9^W¥

c# 中文转拼音
c# 中文转拼音

c# 中文转拼音
C# GUI的:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication22
{
public partial class Form1 :Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender,EventArgs e)
{
string str = textBox1.Text;
MessageBox.Show(GetPYString(str));
}
public string GetPYString(string str)
{
string tempStr = "";
foreach (char c in str)//当前在text里的中文
{
if ((int)c >= 33 && (int)c