Jump to content

C# Çözemediğim Uygulama


MasterTR
 Share

Recommended Posts

[code]Hashtable table = new Hashtable();
table["1"] = "Siirt";
table["2"] = "Ankara";
table["3"] = "İstanbul";
ArrayList al = new ArrayList(table.Keys);
foreach (string anahtar in al)
{
Console.WriteLine(table[anahtar]);
}[/code]
Arraylistleri az da olsa biliyorum ancak hocanın işlediği gün okula gidemedim,şu code C# çalıştırmaya başldığımda bir hareket yok acaba ne işe yaradığı hakkında bilgi verebilirmi ?
Link to comment
Share on other sites

Anladığım kadarıyla belirtilen şehirleri listeliyor, herbiri için bilgi verilince onları alıp yerleine yazıyor.. ama ne amacla yazılmıs bir codlama oldugunu belirtsen mantıgı bu yönde daha rahat kullanabilirdik..

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...