diff --git a/Program.cs b/Program.cs index f820774..02f6df5 100644 --- a/Program.cs +++ b/Program.cs @@ -12,7 +12,7 @@ class Program { do { Console.WriteLine("Inserire un'opzione:"); Console.WriteLine("1. Conta spazi pre maiuscola"); - Console.WriteLine("2. Codifica di una frase"); + Console.WriteLine("2. Converti in binario"); Console.WriteLine("3. Primo carattere maiuscolo"); Console.WriteLine("4. Sostituisci sottostringa"); Console.WriteLine("5. Parola palindroma pari"); @@ -30,7 +30,7 @@ class Program { break; case 2: Console.Clear(); - //Console.WriteLine(Codifica()); + Console.WriteLine(ToBinary()); Pausa(); break; case 3: @@ -111,4 +111,9 @@ class Program { while (p_stringa.Contains(' ') && p_stringa.IndexOf(' ') + i < p_stringa.Length); return ritorno; } + + static string ToBinary() { + Console.Write("Inserire un numero: "); + return Convert.ToString(Convert.ToInt32(Console.ReadLine()), 2); + } } \ No newline at end of file diff --git a/bin/Debug/net9.0/strings_4 b/bin/Debug/net9.0/strings_4 new file mode 100755 index 0000000..84c4339 Binary files /dev/null and b/bin/Debug/net9.0/strings_4 differ diff --git a/bin/Debug/net9.0/strings_4.deps.json b/bin/Debug/net9.0/strings_4.deps.json new file mode 100644 index 0000000..3b361bb --- /dev/null +++ b/bin/Debug/net9.0/strings_4.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v9.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v9.0": { + "strings_4/1.0.0": { + "runtime": { + "strings_4.dll": {} + } + } + } + }, + "libraries": { + "strings_4/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/bin/Debug/net9.0/strings_4.dll b/bin/Debug/net9.0/strings_4.dll new file mode 100644 index 0000000..391d5a4 Binary files /dev/null and b/bin/Debug/net9.0/strings_4.dll differ diff --git a/bin/Debug/net9.0/strings_4.pdb b/bin/Debug/net9.0/strings_4.pdb new file mode 100644 index 0000000..cede4cb Binary files /dev/null and b/bin/Debug/net9.0/strings_4.pdb differ diff --git a/bin/Debug/net9.0/strings_4.runtimeconfig.json b/bin/Debug/net9.0/strings_4.runtimeconfig.json new file mode 100644 index 0000000..b19c3c8 --- /dev/null +++ b/bin/Debug/net9.0/strings_4.runtimeconfig.json @@ -0,0 +1,12 @@ +{ + "runtimeOptions": { + "tfm": "net9.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "9.0.0" + }, + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/obj/Debug/net9.0/apphost b/obj/Debug/net9.0/apphost new file mode 100755 index 0000000..84c4339 Binary files /dev/null and b/obj/Debug/net9.0/apphost differ diff --git a/obj/Debug/net9.0/ref/strings_4.dll b/obj/Debug/net9.0/ref/strings_4.dll new file mode 100644 index 0000000..c6b8e8b Binary files /dev/null and b/obj/Debug/net9.0/ref/strings_4.dll differ diff --git a/obj/Debug/net9.0/refint/strings_4.dll b/obj/Debug/net9.0/refint/strings_4.dll new file mode 100644 index 0000000..c6b8e8b Binary files /dev/null and b/obj/Debug/net9.0/refint/strings_4.dll differ diff --git a/obj/Debug/net9.0/strings_4.AssemblyInfo.cs b/obj/Debug/net9.0/strings_4.AssemblyInfo.cs index 4e1eeca..af9a0bd 100644 --- a/obj/Debug/net9.0/strings_4.AssemblyInfo.cs +++ b/obj/Debug/net9.0/strings_4.AssemblyInfo.cs @@ -13,10 +13,10 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("strings_4")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0890df0f7da1fc9d13a42f53c7c82ff1470edecc")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+cecacadf82f4550337db97f3140dafdfa966695d")] [assembly: System.Reflection.AssemblyProductAttribute("strings_4")] [assembly: System.Reflection.AssemblyTitleAttribute("strings_4")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] -// Generated by the MSBuild WriteCodeFragment class. +// Generato dalla classe WriteCodeFragment di MSBuild. diff --git a/obj/Debug/net9.0/strings_4.AssemblyInfoInputs.cache b/obj/Debug/net9.0/strings_4.AssemblyInfoInputs.cache index a1633fc..519c80e 100644 --- a/obj/Debug/net9.0/strings_4.AssemblyInfoInputs.cache +++ b/obj/Debug/net9.0/strings_4.AssemblyInfoInputs.cache @@ -1 +1 @@ -055ecdb82c22aa317dca173731d42ab01b79189856675a97695bb5b91d4b5339 +5243215eb45f40b218b4e71f61c91a255525290d9fa357e38b27a9c22cb475d7 diff --git a/obj/Debug/net9.0/strings_4.csproj.CoreCompileInputs.cache b/obj/Debug/net9.0/strings_4.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..afb167d --- /dev/null +++ b/obj/Debug/net9.0/strings_4.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +06f94c142303a70bae60c0399ad1bfc26d4714fe770df163928e99e8c3e3029c diff --git a/obj/Debug/net9.0/strings_4.csproj.FileListAbsolute.txt b/obj/Debug/net9.0/strings_4.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..4e8c98c --- /dev/null +++ b/obj/Debug/net9.0/strings_4.csproj.FileListAbsolute.txt @@ -0,0 +1,14 @@ +/home/Verde/git/strings_4/bin/Debug/net9.0/strings_4 +/home/Verde/git/strings_4/bin/Debug/net9.0/strings_4.deps.json +/home/Verde/git/strings_4/bin/Debug/net9.0/strings_4.runtimeconfig.json +/home/Verde/git/strings_4/bin/Debug/net9.0/strings_4.dll +/home/Verde/git/strings_4/bin/Debug/net9.0/strings_4.pdb +/home/Verde/git/strings_4/obj/Debug/net9.0/strings_4.GeneratedMSBuildEditorConfig.editorconfig +/home/Verde/git/strings_4/obj/Debug/net9.0/strings_4.AssemblyInfoInputs.cache +/home/Verde/git/strings_4/obj/Debug/net9.0/strings_4.AssemblyInfo.cs +/home/Verde/git/strings_4/obj/Debug/net9.0/strings_4.csproj.CoreCompileInputs.cache +/home/Verde/git/strings_4/obj/Debug/net9.0/strings_4.dll +/home/Verde/git/strings_4/obj/Debug/net9.0/refint/strings_4.dll +/home/Verde/git/strings_4/obj/Debug/net9.0/strings_4.pdb +/home/Verde/git/strings_4/obj/Debug/net9.0/strings_4.genruntimeconfig.cache +/home/Verde/git/strings_4/obj/Debug/net9.0/ref/strings_4.dll diff --git a/obj/Debug/net9.0/strings_4.dll b/obj/Debug/net9.0/strings_4.dll new file mode 100644 index 0000000..391d5a4 Binary files /dev/null and b/obj/Debug/net9.0/strings_4.dll differ diff --git a/obj/Debug/net9.0/strings_4.genruntimeconfig.cache b/obj/Debug/net9.0/strings_4.genruntimeconfig.cache new file mode 100644 index 0000000..10c2f68 --- /dev/null +++ b/obj/Debug/net9.0/strings_4.genruntimeconfig.cache @@ -0,0 +1 @@ +7417f6395c29dc2f4b6d0167d64dbe27888a8e939eab2b65784168319ce01646 diff --git a/obj/Debug/net9.0/strings_4.pdb b/obj/Debug/net9.0/strings_4.pdb new file mode 100644 index 0000000..cede4cb Binary files /dev/null and b/obj/Debug/net9.0/strings_4.pdb differ