Opzione 2
This commit is contained in:
parent
cecacadf82
commit
cce7ba5469
@ -12,7 +12,7 @@ class Program {
|
|||||||
do {
|
do {
|
||||||
Console.WriteLine("Inserire un'opzione:");
|
Console.WriteLine("Inserire un'opzione:");
|
||||||
Console.WriteLine("1. Conta spazi pre maiuscola");
|
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("3. Primo carattere maiuscolo");
|
||||||
Console.WriteLine("4. Sostituisci sottostringa");
|
Console.WriteLine("4. Sostituisci sottostringa");
|
||||||
Console.WriteLine("5. Parola palindroma pari");
|
Console.WriteLine("5. Parola palindroma pari");
|
||||||
@ -30,7 +30,7 @@ class Program {
|
|||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
Console.Clear();
|
Console.Clear();
|
||||||
//Console.WriteLine(Codifica());
|
Console.WriteLine(ToBinary());
|
||||||
Pausa();
|
Pausa();
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
@ -111,4 +111,9 @@ class Program {
|
|||||||
while (p_stringa.Contains(' ') && p_stringa.IndexOf(' ') + i < p_stringa.Length);
|
while (p_stringa.Contains(' ') && p_stringa.IndexOf(' ') + i < p_stringa.Length);
|
||||||
return ritorno;
|
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
BIN
bin/Debug/net9.0/strings_4
Executable file
Binary file not shown.
23
bin/Debug/net9.0/strings_4.deps.json
Normal file
23
bin/Debug/net9.0/strings_4.deps.json
Normal 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": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
bin/Debug/net9.0/strings_4.dll
Normal file
BIN
bin/Debug/net9.0/strings_4.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/strings_4.pdb
Normal file
BIN
bin/Debug/net9.0/strings_4.pdb
Normal file
Binary file not shown.
12
bin/Debug/net9.0/strings_4.runtimeconfig.json
Normal file
12
bin/Debug/net9.0/strings_4.runtimeconfig.json
Normal 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
BIN
obj/Debug/net9.0/apphost
Executable file
Binary file not shown.
BIN
obj/Debug/net9.0/ref/strings_4.dll
Normal file
BIN
obj/Debug/net9.0/ref/strings_4.dll
Normal file
Binary file not shown.
BIN
obj/Debug/net9.0/refint/strings_4.dll
Normal file
BIN
obj/Debug/net9.0/refint/strings_4.dll
Normal file
Binary file not shown.
@ -13,10 +13,10 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("strings_4")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("strings_4")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[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.AssemblyProductAttribute("strings_4")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("strings_4")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("strings_4")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|
||||||
// Generated by the MSBuild WriteCodeFragment class.
|
// Generato dalla classe WriteCodeFragment di MSBuild.
|
||||||
|
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
055ecdb82c22aa317dca173731d42ab01b79189856675a97695bb5b91d4b5339
|
5243215eb45f40b218b4e71f61c91a255525290d9fa357e38b27a9c22cb475d7
|
||||||
|
|||||||
@ -0,0 +1 @@
|
|||||||
|
06f94c142303a70bae60c0399ad1bfc26d4714fe770df163928e99e8c3e3029c
|
||||||
14
obj/Debug/net9.0/strings_4.csproj.FileListAbsolute.txt
Normal file
14
obj/Debug/net9.0/strings_4.csproj.FileListAbsolute.txt
Normal 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
|
||||||
BIN
obj/Debug/net9.0/strings_4.dll
Normal file
BIN
obj/Debug/net9.0/strings_4.dll
Normal file
Binary file not shown.
1
obj/Debug/net9.0/strings_4.genruntimeconfig.cache
Normal file
1
obj/Debug/net9.0/strings_4.genruntimeconfig.cache
Normal file
@ -0,0 +1 @@
|
|||||||
|
7417f6395c29dc2f4b6d0167d64dbe27888a8e939eab2b65784168319ce01646
|
||||||
BIN
obj/Debug/net9.0/strings_4.pdb
Normal file
BIN
obj/Debug/net9.0/strings_4.pdb
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user