using System;
using System.Data;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
namespace ConsoleApplication
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入文件路径:");
String path = Console.ReadLine();
Count(path);
Console.WriteLine("请输入任意键继续");
Console.ReadKey();
}
private void button1_Click(object sender, EventArgs e)
{
{
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "*.txt|*.txt|所有文件(*.*)|*.*";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
try
{
string Name = openFileDialog1.FileName;
int[] n = count(Name);
textB
C#源代码计算器
最新推荐文章于 2021-07-24 17:15:06 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)