Chcp 65001
g++ lib.cpp -shared -o lib.dll
g++ main.cpp -o main.exe -LC:\Users\Joe\Desktop\C++\1 -l:lib.dll
pause
set currentPath = C:\Users\Joe\Desktop\blackLists\New folder\codes\C++\1
g++ main.cpp -o main.exe -L/%currentPath%/ -llib
private static Dictionary<string, List<string>> OptimizeContacts(List<string> _contacts)
{
var dictionary = new Dictionary<string, List<string>>();
foreach (var currentLine in _contacts)
{
var splitedLine = currentLine.Split(':');
var text = currentLine;
if (splitedLine[0].Length != 1) {
var id = currentLine.Remove(2, currentLine.Length - 2);
if (!dictionary.ContainsKey(id)) {
dictionary[id] = new List<string> {text};
}
else {
dictionary[id].Add(text);
}
}
else {
var id = splitedLine[0];
if (!dictionary.ContainsKey(id)) {
dictionary[id] = new List<string> {text};
}
else {
dictionary[id].Add(text);
}
}
}
return dictionary;
}
if (_targetString.compare(nullptr))