lagt till character analyse

This commit is contained in:
2018-12-15 18:25:37 +01:00
parent f7e20aaa17
commit e060afed52

View File

@ -16,7 +16,24 @@ namespace _2018_05
string resTab = File.ReadAllText(@"..\..\..\Data\Adventofcode_181205\2018_05_data.txt"); string resTab = File.ReadAllText(@"..\..\..\Data\Adventofcode_181205\2018_05_data.txt");
//string resTab = "dabAcCaCBAcCcaDA"; //string resTab = "dabAcCaCBAcCcaDA";
SortedSet<Char> charset = new SortedSet<char>();
foreach(char x in resTab.ToCharArray())
{
try
{
charset.Add(x);
}
catch (Exception)
{ }
}
foreach(char y in charset)
{
Write($"{y},");
}
ReadKey();
int varv = 0; int varv = 0;