#include <algorithm>
#include <iostream>
#include <string>
int main()
{
std::string strings[] = {"143", "224", "168", "162", "165", "226"};
char line[16] {};
std::transform(std::begin(strings), std::end(strings), std::begin(line),
[](const std::string& s) {
return std::stoi(s); });
std::cout << line;
}
private static readonly Encoding Windows1251Encoding = Encoding.GetEncoding(1251);
static string FromCyrillicStringArray(string[] values)
{
var bytes = new byte[values.Length];
for (var i = 0; i < values.Length; i++)
bytes[i] = Convert.ToByte(values[i]);
return Windows1251Encoding.GetString(bytes);
}
...
var codes = new[] { "207", "192", "207", "192" };
Console.WriteLine(FromCyrillicStringArray(codes) == "ПАПА"); // true