Added readme and added output argument
This commit is contained in:
12
README.txt
Normal file
12
README.txt
Normal 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.
|
@@ -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)
|
||||
{
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user