lagt till character analyse
This commit is contained in:
@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user