Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
bytes to string to bytes.
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { var bytes = new byte[] { 4,8,15,16,23,41 }; var str = String.Join(",",bytes); //Your code goes here Console.WriteLine("Joined string: {0}\n",str); var arr = str.Split(',').Select(s => Byte.Parse(s)).ToArray(); Console.WriteLine("Result: Length = {0}\n",arr.Length); for(var i=0;i<arr.Length;++i) Console.WriteLine("[{0}] = {1}\n",i,arr[i]); } } }
run
|
edit
|
history
|
help
1
Code wall rules
Intuit // C# // listing_4.4 (StreamReader // input.txt)
amstrong number
Lesson1_1_Part2.cs
Simple Selection Sort
Ok
FixConsectiveDuplicates
sdgdfhfh
Comp 3
Event test