Opzione 2

This commit is contained in:
La Programmatrice Verde 2025-02-26 09:22:50 +01:00
parent cecacadf82
commit cce7ba5469
16 changed files with 61 additions and 5 deletions

View File

@ -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);
}
}

BIN
bin/Debug/net9.0/strings_4 Executable file

Binary file not shown.

View File

@ -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": ""
}
}
}

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net9.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "9.0.0"
},
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

BIN
obj/Debug/net9.0/apphost Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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.

View File

@ -1 +1 @@
055ecdb82c22aa317dca173731d42ab01b79189856675a97695bb5b91d4b5339
5243215eb45f40b218b4e71f61c91a255525290d9fa357e38b27a9c22cb475d7

View File

@ -0,0 +1 @@
06f94c142303a70bae60c0399ad1bfc26d4714fe770df163928e99e8c3e3029c

View File

@ -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

Binary file not shown.

View File

@ -0,0 +1 @@
7417f6395c29dc2f4b6d0167d64dbe27888a8e939eab2b65784168319ce01646

Binary file not shown.