1
0

Added readme and added output argument

This commit is contained in:
2019-05-24 09:22:33 +02:00
parent f3f71765f0
commit 30e37e3f22
3 changed files with 16 additions and 2 deletions

12
README.txt Normal file
View File

@@ -0,0 +1,12 @@
Het programma kan op volgende manieren uitgevoerd worden:
- mono TMI_practicum.exe invoer.txt uitvoer.txt
- mono TMI_practicum.exe invoer.txt (de uitvoer wordt in output.txt geplaatst.
- mono TMI_practicum.exe (zonder argument wordt 'input.txt' gezocht en de uitvoer in output.txt geplaatst.)
Alle dll's moeten in de map naast het uitvoerbaar bestand staan.
Voor algoritme 1 en 2 werken alle gevallen.
Voor algoritme 3 werken de gevallen waarbij een bepaalde cirkel volledig in een andere cirkel gelegen is en dan snijdt met een andere cirkel niet.
De uitvoer wordt in output.txt geplaatst.

View File

@@ -25,6 +25,8 @@ namespace TMI_practicum
Environment.Exit(1);
}
if (args.Length > 1) OutputFile = args[1];
(byte algorithm, _, IList<Circle> circles) = ParseFile(inputFile);
@@ -206,7 +208,7 @@ namespace TMI_practicum
return (algorithm, nbCircles, circles);
}
private const string OutputFile = "output.txt";
private static string OutputFile = "output.txt";
private static void WriteOutput(IEnumerable<Intersection> intersections, double time)
{

View File

@@ -25,7 +25,7 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>