using System;
using System.Collections.Generic;
using System.Text;
//2005控制台
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string str = "abcdecfgchicgckclcmcn";
int position = str.IndexOf('c');
string newStr = str.Substring(0, position) + 'P' + str.Substring(position + 1);
Console.WriteLine(position);
Console.WriteLine(newStr);
Console.Read();
}
}
}
闯出自己的天空