Opzione 1

This commit is contained in:
La Programmatrice Verde 2025-02-27 09:56:03 +01:00
parent 6e87c50f38
commit 8bd4398e08
21 changed files with 185 additions and 6 deletions

0
C#.repo Normal file
View File

View File

@ -1,9 +1,87 @@
namespace strings_5;
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
class Program {
static void Main(string[] args) {
Menu();
}
}
static void Menu() {
Console.Clear();
int scelta;
string[] array = null;
string stringa1, stringa2;
do {
Console.WriteLine("Inserire un'opzione:");
Console.WriteLine("1. Conta spazi pre maiuscola");
Console.WriteLine("2. Converti in binario");
Console.WriteLine("3. Stampa a gruppi di 3");
Console.WriteLine("4. Codifica");
Console.WriteLine("5. Individua anagramma");
Console.WriteLine("0. Esci");
Console.Write("Scelta: ");
scelta = Convert.ToInt32(Console.ReadLine());
switch (scelta) {
case 0:
break;
case 1:
Console.Clear();
array = CreaArray();
Pausa();
break;
case 2:
Console.Clear();
Pausa();
break;
case 3:
Console.Clear();
Pausa();
break;
case 4:
Console.Clear();
//Codifica();
Pausa();
break;
case 5:
Console.Clear();
//Anagramma();
Pausa();
break;
default:
Console.WriteLine("Opzione non valida.");
Pausa();
break;
}
}
while (scelta != 0);
}
static void Pausa() {
Console.WriteLine("Premere un tasto per continuare. . .");
Console.ReadKey();
Console.Clear();
}
static string Input() {
Console.Write("Inserire una frase: ");
return Console.ReadLine();
}
static string[] CreaArray() {
int dimensione;
Console.Write("Quante frasi inserire?");
dimensione = Convert.ToInt32(Console.ReadLine());
string[] ritorno = new string[dimensione];
for (int i = 0; i < dimensione; i++) {
ritorno[i] = Input();
}
return ritorno;
}
}

BIN
bin/Debug/net9.0/strings_5 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_5/1.0.0": {
"runtime": {
"strings_5.dll": {}
}
}
}
},
"libraries": {
"strings_5/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
}
}
}

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]

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

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("strings_5")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6e87c50f38fe55a9a356be9943e01a9b33f11d9c")]
[assembly: System.Reflection.AssemblyProductAttribute("strings_5")]
[assembly: System.Reflection.AssemblyTitleAttribute("strings_5")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -0,0 +1 @@
fe225aa8de7de9cfc2110dee8a116f06390dffbae0a351de03d0a092dbfe8d53

View File

@ -0,0 +1,15 @@
is_global = true
build_property.TargetFramework = net9.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = strings_5
build_property.ProjectDir = /home/Verde/git/strings_5/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 9.0
build_property.EnableCodeStyleSeverity =

View File

@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

Binary file not shown.

View File

@ -0,0 +1 @@
95fdab40150cd8aa7ff9585c1aae937f5add1b7cd1017f714e913a89b279627a

View File

@ -0,0 +1,14 @@
/home/Verde/git/strings_5/bin/Debug/net9.0/strings_5
/home/Verde/git/strings_5/bin/Debug/net9.0/strings_5.deps.json
/home/Verde/git/strings_5/bin/Debug/net9.0/strings_5.runtimeconfig.json
/home/Verde/git/strings_5/bin/Debug/net9.0/strings_5.dll
/home/Verde/git/strings_5/bin/Debug/net9.0/strings_5.pdb
/home/Verde/git/strings_5/obj/Debug/net9.0/strings_5.GeneratedMSBuildEditorConfig.editorconfig
/home/Verde/git/strings_5/obj/Debug/net9.0/strings_5.AssemblyInfoInputs.cache
/home/Verde/git/strings_5/obj/Debug/net9.0/strings_5.AssemblyInfo.cs
/home/Verde/git/strings_5/obj/Debug/net9.0/strings_5.csproj.CoreCompileInputs.cache
/home/Verde/git/strings_5/obj/Debug/net9.0/strings_5.dll
/home/Verde/git/strings_5/obj/Debug/net9.0/refint/strings_5.dll
/home/Verde/git/strings_5/obj/Debug/net9.0/strings_5.pdb
/home/Verde/git/strings_5/obj/Debug/net9.0/strings_5.genruntimeconfig.cache
/home/Verde/git/strings_5/obj/Debug/net9.0/ref/strings_5.dll

Binary file not shown.

View File

@ -0,0 +1 @@
dad9f5247a590cce87202bf76a1547ca7ac93b19600c46f57dd675b6e60446ba

Binary file not shown.