Results 1 to 3 of 3
Thread: - C#
Hybrid View
-
16th December 2011 16:42 #1Registered User
Join Date: Dec:2011
Location: Varna
Posts: 1
- C#
. , .
: 1
2
: , , ,
string s = "", t1 = textBox1.Text, t2 = textBox2.Text;
bool pr = false;
for (int i = 0; i < t1.Length; i++)
{
for (int j = 0; j < t2.Length; j++)
{
if (j + s.Length < t2.Length)
{
if (t2.Substring(j, s.Length) == s)
{
pr = true;
}
}
}
if (pr)
{
s += t1[i];
pr = false;
// listBox1.Items.Add(s);
}
else
{
if (s.Length >= 2)
{
listBox1.Items.Add(s);
s = t1[i].ToString();
}
}
}
}
, . , , ! : )))
-
16th December 2011 18:41 #2
(++ #): , . (). , . , (). [x,x+1,...,y).
, . , .
, .
Laa shay'a waqi'un moutlaq bale kouloun moumkine.
Nulla é reale, tutto é lecito.
-
16th December 2011 19:03 #3Registered User
Join Date: Feb:2006
Location: Plovdiv
Posts: 392




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in