Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<Compile Remove="Ex1.cs" />
</ItemGroup>

<ItemGroup>
<None Include="Ex1.cs" />
</ItemGroup>

</Project>
25 changes: 25 additions & 0 deletions SolutionEtudiants/JJE/C#/CSharp_Conversion/CSharp_Conversion.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.2.32630.192
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharp_Conversion", "CSharp_Conversion.csproj", "{393734A5-C257-4A4B-BDBA-6C3C9C3A5717}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{393734A5-C257-4A4B-BDBA-6C3C9C3A5717}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{393734A5-C257-4A4B-BDBA-6C3C9C3A5717}.Debug|Any CPU.Build.0 = Debug|Any CPU
{393734A5-C257-4A4B-BDBA-6C3C9C3A5717}.Release|Any CPU.ActiveCfg = Release|Any CPU
{393734A5-C257-4A4B-BDBA-6C3C9C3A5717}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {40D5F52C-6DB4-4787-8950-C70D1BC53E6F}
EndGlobalSection
EndGlobal
80 changes: 80 additions & 0 deletions SolutionEtudiants/JJE/C#/CSharp_Conversion/Ex1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
using System;
using System.Windows.Forms;

namespace Ex1
{

}
int main (void)
{
char UserAnswer;
int ValA, ValB;
// Variables pour test A et B
short i;
short ValB1;
double ValB2;

printf("Exercice 1 : Huber Christian \n");
printf("Solution en C a trandformer en C++ \n");


do {
printf("Test A ou B, Q pour Quitter \n");
scanf_s("%c%*c", &UserAnswer, 2);

switch (UserAnswer) {
case 'A':
case 'a':
printf("TestA: entrez un nombre entre 1 et 9 \n");
scanf_s("%d%*c", &ValA);

if (ValA > 9)
{
ValA = 9;
printf("TestA: ValA limitee a 9 \n");
}
if (ValA == 0)
{
ValA = 1;
printf("TestA: ValA forcee a 1 \n");
}
if (ValA > 0 )
{
printf("%d ", ValA);
for (i=0; i < ValA ; i++)
{
printf ("*");
}
printf("\n"); // saut de ligne
}
else
{
printf("TestA: ValA est negatif ! \n");
}
break;

case 'B':
case 'b':
printf("TestB: entrez une valeur entre 0 et 9 \n");
scanf_s("%d%*c", &ValB);

if (ValB >= 0 && ValB <=9 )
{
for (i=0; i < ValB; i++) {
ValB1 = 100 + (10 * i);
ValB2 = ValB1 / 10000.0;
printf("TestB: i= %d ValB1 = %d ValB2 = %lf \n", i, ValB1, ValB2);
}
}
else
{
printf("TestB: ValB n'est pas entre 0 et 9 ! \n");
}
break;

} // end switch

} while (!(UserAnswer == 'Q' || UserAnswer == 'q'));

return (0);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"format": 1,
"restore": {
"C:\\Users\\jerjeanelie\\Github\\POBJ_SLO2_24_25\\SolutionEtudiants\\JJE\\C#\\CSharp_Conversion\\CSharp_Conversion.csproj": {}
},
"projects": {
"C:\\Users\\jerjeanelie\\Github\\POBJ_SLO2_24_25\\SolutionEtudiants\\JJE\\C#\\CSharp_Conversion\\CSharp_Conversion.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\jerjeanelie\\Github\\POBJ_SLO2_24_25\\SolutionEtudiants\\JJE\\C#\\CSharp_Conversion\\CSharp_Conversion.csproj",
"projectName": "CSharp_Conversion",
"projectPath": "C:\\Users\\jerjeanelie\\Github\\POBJ_SLO2_24_25\\SolutionEtudiants\\JJE\\C#\\CSharp_Conversion\\CSharp_Conversion.csproj",
"packagesPath": "C:\\Users\\jerjeanelie\\.nuget\\packages\\",
"outputPath": "C:\\Users\\jerjeanelie\\Github\\POBJ_SLO2_24_25\\SolutionEtudiants\\JJE\\C#\\CSharp_Conversion\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\jerjeanelie\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\jerjeanelie\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.2.1</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\jerjeanelie\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.42000
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le code est régénéré.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("CSharp_Conversion")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("CSharp_Conversion")]
[assembly: System.Reflection.AssemblyTitleAttribute("CSharp_Conversion")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// Généré par la classe MSBuild WriteCodeFragment.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
75e3758a536c6a7767d3c512f8d00a49ab3377cb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = CSharp_Conversion
build_property.ProjectDir = C:\Users\jerjeanelie\Github\POBJ_SLO2_24_25\SolutionEtudiants\JJE\C#\CSharp_Conversion\
Original file line number Diff line number Diff line change
@@ -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.
Binary file not shown.
72 changes: 72 additions & 0 deletions SolutionEtudiants/JJE/C#/CSharp_Conversion/obj/project.assets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"version": 3,
"targets": {
"net6.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
},
"packageFolders": {
"C:\\Users\\jerjeanelie\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\jerjeanelie\\Github\\POBJ_SLO2_24_25\\SolutionEtudiants\\JJE\\C#\\CSharp_Conversion\\CSharp_Conversion.csproj",
"projectName": "CSharp_Conversion",
"projectPath": "C:\\Users\\jerjeanelie\\Github\\POBJ_SLO2_24_25\\SolutionEtudiants\\JJE\\C#\\CSharp_Conversion\\CSharp_Conversion.csproj",
"packagesPath": "C:\\Users\\jerjeanelie\\.nuget\\packages\\",
"outputPath": "C:\\Users\\jerjeanelie\\Github\\POBJ_SLO2_24_25\\SolutionEtudiants\\JJE\\C#\\CSharp_Conversion\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\jerjeanelie\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "/nJqw3SnM8QA9NFC5bW7MJXZ7dzfQMGg7iwXiAbPobxeFcSUj505Aj9VGQIAyhc4MS0TQEPagd3dbidD+oRBBw==",
"success": true,
"projectFilePath": "C:\\Users\\jerjeanelie\\Github\\POBJ_SLO2_24_25\\SolutionEtudiants\\JJE\\C#\\CSharp_Conversion\\CSharp_Conversion.csproj",
"expectedPackageFiles": [],
"logs": []
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
10 changes: 10 additions & 0 deletions SolutionEtudiants/JJE/C#/CSharp_Demo/CSharp_Demo.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
25 changes: 25 additions & 0 deletions SolutionEtudiants/JJE/C#/CSharp_Demo/CSharp_Demo.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.2.32630.192
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharp_Demo", "CSharp_Demo.csproj", "{D944753B-B9C9-49D3-9553-BEDBB406DD58}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D944753B-B9C9-49D3-9553-BEDBB406DD58}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D944753B-B9C9-49D3-9553-BEDBB406DD58}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D944753B-B9C9-49D3-9553-BEDBB406DD58}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D944753B-B9C9-49D3-9553-BEDBB406DD58}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9308E853-DA7F-4444-951C-328565611A6B}
EndGlobalSection
EndGlobal
Loading