[C#]. WindowForm Đếm từ trong chuỗi

Người đăng: share-nhungdieuhay on Thứ Tư, 16 tháng 7, 2014



using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DemTuTrongChuoi
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnDem_Click(object sender, EventArgs e)
        {
            int sokytu = 0;
            string a = txtChuoi.Text;
            a= a.Trim();
            sokytu = a.Length;

            lbkq.Text = "Chuỗi có :" + sokytu;

        }
    }
}


Tải code tại đây : Tải xuống 

{ 0 nhận xét... read them below or add one }

Đăng nhận xét