Compare commits
No commits in common. "dfd513f375a265cc81e7c7ea11293cbae42e04ca" and "c1b3e67581b5892009c7066b711a50a018af031d" have entirely different histories.
dfd513f375
...
c1b3e67581
37
.gitignore
vendored
37
.gitignore
vendored
@ -1,37 +0,0 @@
|
|||||||
*.swp
|
|
||||||
*.*~
|
|
||||||
project.lock.json
|
|
||||||
.DS_Store
|
|
||||||
*.pyc
|
|
||||||
nupkg/
|
|
||||||
|
|
||||||
# Visual Studio Code
|
|
||||||
.vscode
|
|
||||||
|
|
||||||
# Rider
|
|
||||||
.idea
|
|
||||||
|
|
||||||
# User-specific files
|
|
||||||
*.suo
|
|
||||||
*.user
|
|
||||||
*.userosscache
|
|
||||||
*.sln.docstates
|
|
||||||
|
|
||||||
# Build results
|
|
||||||
[Dd]ebug/
|
|
||||||
[Dd]ebugPublic/
|
|
||||||
[Rr]elease/
|
|
||||||
[Rr]eleases/
|
|
||||||
x64/
|
|
||||||
x86/
|
|
||||||
build/
|
|
||||||
bld/
|
|
||||||
[Bb]in/
|
|
||||||
[Oo]bj/
|
|
||||||
[Oo]ut/
|
|
||||||
msbuild.log
|
|
||||||
msbuild.err
|
|
||||||
msbuild.wrn
|
|
||||||
|
|
||||||
# Visual Studio 2015
|
|
||||||
.vs/
|
|
||||||
@ -1,25 +0,0 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio Version 17
|
|
||||||
VisualStudioVersion = 17.14.36623.8 d17.14
|
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Couteau_Suisse", "Couteau_Suisse\Couteau_Suisse.csproj", "{72B3706A-55EB-4F56-AED8-A18564F4FB59}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{72B3706A-55EB-4F56-AED8-A18564F4FB59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{72B3706A-55EB-4F56-AED8-A18564F4FB59}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{72B3706A-55EB-4F56-AED8-A18564F4FB59}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{72B3706A-55EB-4F56-AED8-A18564F4FB59}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
SolutionGuid = {FBB17230-6C0A-4944-BD0B-DD75D8DC9534}
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
|
||||||
<configuration>
|
|
||||||
<startup>
|
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
|
||||||
</startup>
|
|
||||||
</configuration>
|
|
||||||
@ -1,54 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{72B3706A-55EB-4F56-AED8-A18564F4FB59}</ProjectGuid>
|
|
||||||
<OutputType>Exe</OutputType>
|
|
||||||
<RootNamespace>Couteau_Suisse</RootNamespace>
|
|
||||||
<AssemblyName>Couteau_Suisse</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
|
||||||
<Deterministic>true</Deterministic>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Net.Http" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="Morse.cs" />
|
|
||||||
<Compile Include="Program.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="App.config" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
</Project>
|
|
||||||
@ -1,148 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Couteau_Suisse
|
|
||||||
{
|
|
||||||
internal class Morse
|
|
||||||
{
|
|
||||||
static void Main(string[] args)
|
|
||||||
{
|
|
||||||
Console.WriteLine("=== Convertisseur de texte en code Morse ===\n" +
|
|
||||||
"Entrez un mot ou une phrase (sans accents, lettres A-Z) :");
|
|
||||||
|
|
||||||
char[] kilian = Console.ReadLine().ToCharArray();
|
|
||||||
string theocable = "";
|
|
||||||
|
|
||||||
for (int i = 0; i < kilian.Length; i++)
|
|
||||||
{
|
|
||||||
switch (kilian[i])
|
|
||||||
{
|
|
||||||
case 'a':
|
|
||||||
theocable += ".-";
|
|
||||||
break;
|
|
||||||
case 'b':
|
|
||||||
theocable += "-...";
|
|
||||||
break;
|
|
||||||
case 'c':
|
|
||||||
theocable += "-.-.";
|
|
||||||
break;
|
|
||||||
case 'd':
|
|
||||||
theocable += "-..";
|
|
||||||
break;
|
|
||||||
case 'e':
|
|
||||||
theocable += "-.";
|
|
||||||
break;
|
|
||||||
case 'f':
|
|
||||||
theocable += "..-.";
|
|
||||||
break;
|
|
||||||
case 'g':
|
|
||||||
theocable += "--.";
|
|
||||||
break;
|
|
||||||
case 'h':
|
|
||||||
theocable += "....";
|
|
||||||
break;
|
|
||||||
case 'i':
|
|
||||||
theocable += "..";
|
|
||||||
break;
|
|
||||||
case 'j':
|
|
||||||
theocable += ".---";
|
|
||||||
break;
|
|
||||||
case 'k':
|
|
||||||
theocable += "-.-";
|
|
||||||
break;
|
|
||||||
case 'l':
|
|
||||||
theocable += ".-..";
|
|
||||||
break;
|
|
||||||
case 'm':
|
|
||||||
theocable += "--";
|
|
||||||
break;
|
|
||||||
case 'n':
|
|
||||||
theocable += "-.";
|
|
||||||
break;
|
|
||||||
case 'o':
|
|
||||||
theocable += "---";
|
|
||||||
break;
|
|
||||||
case 'p':
|
|
||||||
theocable += ".--.";
|
|
||||||
break;
|
|
||||||
case 'q':
|
|
||||||
theocable += "--.-";
|
|
||||||
break;
|
|
||||||
case 'r':
|
|
||||||
theocable += ".-.";
|
|
||||||
break;
|
|
||||||
case 's':
|
|
||||||
theocable += "...";
|
|
||||||
break;
|
|
||||||
case 't':
|
|
||||||
theocable += "-";
|
|
||||||
break;
|
|
||||||
case 'u':
|
|
||||||
theocable += "..u";
|
|
||||||
break;
|
|
||||||
case 'v':
|
|
||||||
theocable += "...-";
|
|
||||||
break;
|
|
||||||
case 'w':
|
|
||||||
theocable += ".--";
|
|
||||||
break;
|
|
||||||
case 'x':
|
|
||||||
theocable += "-..-";
|
|
||||||
break;
|
|
||||||
case 'y':
|
|
||||||
theocable += "-.--";
|
|
||||||
break;
|
|
||||||
case 'z':
|
|
||||||
theocable += "--..";
|
|
||||||
break;
|
|
||||||
case '0':
|
|
||||||
theocable += "-----";
|
|
||||||
break;
|
|
||||||
case '1':
|
|
||||||
theocable += ".----";
|
|
||||||
break;
|
|
||||||
case '2':
|
|
||||||
theocable += "..---";
|
|
||||||
break;
|
|
||||||
case '3':
|
|
||||||
theocable += "...--";
|
|
||||||
break;
|
|
||||||
case '4':
|
|
||||||
theocable += "....-";
|
|
||||||
break;
|
|
||||||
case '5':
|
|
||||||
theocable += ".....";
|
|
||||||
break;
|
|
||||||
case '6':
|
|
||||||
theocable += "-....";
|
|
||||||
break;
|
|
||||||
case '7':
|
|
||||||
theocable += "--...";
|
|
||||||
break;
|
|
||||||
case '8':
|
|
||||||
theocable += "---..";
|
|
||||||
break;
|
|
||||||
case '9':
|
|
||||||
theocable += "----.";
|
|
||||||
break;
|
|
||||||
case ' ':
|
|
||||||
theocable += "/";
|
|
||||||
break;
|
|
||||||
|
|
||||||
|
|
||||||
default:
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
theocable += " ";
|
|
||||||
}
|
|
||||||
|
|
||||||
Console.WriteLine("\n" +
|
|
||||||
"Résultat en Morse :" + "\n" +
|
|
||||||
theocable);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Couteau_Suisse
|
|
||||||
{
|
|
||||||
internal class Program
|
|
||||||
{
|
|
||||||
static void Main(string[] args)
|
|
||||||
{
|
|
||||||
Console.WriteLine("=== Couteau Suisse – Utilitaires ===" + "\n" +
|
|
||||||
"1. Convertir du texte en code Morse" + "\n" +
|
|
||||||
"2. Convertir des nombres entre différentes bases (Décimal <> Binaire <> Octal)" + "\n" +
|
|
||||||
"3. (à venir)" + "\n" +
|
|
||||||
"\n" +
|
|
||||||
"Veuillez entrer votre choix : ");
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// Les informations générales relatives à un assembly dépendent de
|
|
||||||
// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations
|
|
||||||
// associées à un assembly.
|
|
||||||
[assembly: AssemblyTitle("Couteau_Suisse")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("DGEP")]
|
|
||||||
[assembly: AssemblyProduct("Couteau_Suisse")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © DGEP 2025")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly
|
|
||||||
// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de
|
|
||||||
// COM, affectez la valeur true à l'attribut ComVisible sur ce type.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM
|
|
||||||
[assembly: Guid("72b3706a-55eb-4f56-aed8-a18564f4fb59")]
|
|
||||||
|
|
||||||
// Les informations de version pour un assembly se composent des quatre valeurs suivantes :
|
|
||||||
//
|
|
||||||
// Version principale
|
|
||||||
// Version secondaire
|
|
||||||
// Numéro de build
|
|
||||||
// Révision
|
|
||||||
//
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
Loading…
x
Reference in New Issue
Block a user