using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace wordGame
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, System.EventArgs e)
{
string iuputString;//定义String型变量inputString,声明对象
iuputString = new String(textBox1.Text.ToCharArray);//创建并初始化对象inputString
string outputString = null;
char ch;
for (int i = 0; i <= inputString.length - 1; i++)
{
if (ch == 'A' || ch == 'a' ||
ch == 'E' || ch == 'e' ||
ch == 'I' || ch == 'i' ||
ch == 'O' || ch == 'o' ||
ch == 'U' || ch == 'u')
{
outputString += "Egg";
outputString += ch.ToString();
}
else
outputString += ch.ToString();
}
textBox2.Text =outputString;
}
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
private void Form1_Load中void报错应输入 class、delegate、enum、interface 或 struct
撒科打诨
Helenr
青春有我