MasterTR Posted June 5, 2011 Share Posted June 5, 2011 (edited) [b]1-Girilen Bir Metnin Kaç Kelimeden Oluştuğunu Bulan Program. 2-Girilen Bir Metinde 3 Harfi Kelimeleri Listbox'a Listeleyen Kod. 3-Girilen Bir Metinde Kaç Tane A Harfinin Geçtiğini Bulan Kod[/b] Bu Problemleri 1 Gündür Uğraşıyorum Çözemedim. [b]Girilen Bir İfadeyi Listboxa Listeleyen Kod Tamamdır;[/b] [code]string [] dizi; string ifade=Textbox1.Text.Split(' '); foreach(string al in dizi) { if (kelime.Length==3) { listbox1.Items.Add(kelime); } }[/code] Edited June 6, 2011 by MasterTR Quote Link to comment Share on other sites More sharing options...
Scarecrow Posted June 5, 2011 Share Posted June 5, 2011 (edited) Dur bakalım biraz bakıyım Edit : #1 [url="http://www.dosyaupload.net/6359725.html"]http://www.dosyaupload.net/6359725.html[/url] İlk soru burada az sonra diğerlerine bakacağım Edited June 5, 2011 by Scarecrow Quote Link to comment Share on other sites More sharing options...
MasterTR Posted June 5, 2011 Author Share Posted June 5, 2011 1-Girilen Bir Metnin Kaç Kelimeden Oluştuğunu Bulan Program. Şu Örneği Kaç Kelimeden Değilde Kaç Harften Oluştuğunu Bulabiliyorum Ancak. Quote Link to comment Share on other sites More sharing options...
Scarecrow Posted June 5, 2011 Share Posted June 5, 2011 Baktın mı ilk örneğe? Quote Link to comment Share on other sites More sharing options...
MasterTR Posted June 5, 2011 Author Share Posted June 5, 2011 Baktım kafam biraz karıştı ama mantığını anladım Split ne amaçla kullanılıyor onu çözemedim ? Split() metodu sayesinde karaktersel bir bilgiyi istediğiniz sayıda parçaya bölebiliriz. Örneğin bu metodu kullanarak birlikte yazılan ad ve soyadı birbirinden ayırabildiğimiz gibi Merak edenlerede Kaynak olur Kendi C# kitabımdan kaynaklandım ve mantığını anladım. Quote Link to comment Share on other sites More sharing options...
win32 Posted June 5, 2011 Share Posted June 5, 2011 (edited) #2 [code]http://pastebin.com/Q1BZ6mgX[/code] #3 [code]http://pastebin.com/9Uib3mQc[/code] Daha iyi bir yolu olmalı. Edited June 6, 2011 by win32 Quote Link to comment Share on other sites More sharing options...
lorder Posted June 5, 2011 Share Posted June 5, 2011 şu an yazdıkların uygundur. Daha iyi bişey için yarın akşama beraber bakarız Quote Link to comment Share on other sites More sharing options...
MasterTR Posted June 6, 2011 Author Share Posted June 6, 2011 2.Soru Tamamdır,Bilgi almak isteyen arkadaşlara postun başında verdim. Quote Link to comment Share on other sites More sharing options...
win32 Posted June 6, 2011 Share Posted June 6, 2011 (edited) [quote name='MasterTR' date='06 June 2011 - 11:55 ' timestamp='1307354107' post='1025028'] 2.Soru Tamamdır,Bilgi almak isteyen arkadaşlara postun başında verdim. [/quote] [font="arial, verdana, tahoma, sans-serif"][size="2"][quote name='win32' date='05 June 2011 - 23:31 ' timestamp='1307309479' post='1024905'] [s]#2 [code]http://pastebin.com/Q1BZ6mgX[/code][/s] [b][size="4"][size="2"]#3[/size][/size][/b] [code]http://pastebin.com/9Uib3mQc[/code] Daha iyi bir yolu olmalı. [/quote][/size][/font] Edited June 6, 2011 by win32 Quote Link to comment Share on other sites More sharing options...
MasterTR Posted June 6, 2011 Author Share Posted June 6, 2011 [b]Aa win32 aynı örnek görmemişim ustat [/b]3.Soru içinde Teşekkür Ediyorum Bu Örnekle Az Pekiştirme Yaparım Artık. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.