-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
@echo off | ||
@ECHO OFF | ||
|
||
IF "%1" == "" || "%1" == "1" || "%1" == "array" ( | ||
SET "_RUN_ARRAY=0" | ||
IF [%1] == [] SET "_RUN_ARRAY=1" | ||
IF [%1] == [1] SET "_RUN_ARRAY=1" | ||
IF [%1] == [array] SET "_RUN_ARRAY=1" | ||
IF %_RUN_ARRAY% == 1 ( | ||
ECHO Building and running the array approach... | ||
ECHO( | ||
ECHO: | ||
g++ -Ofast PrimeCPP_array.cpp -std=c++17 -lstdc++ -oPrimes_array.exe | ||
.\Primes_array.exe | ||
ECHO( | ||
ECHO: | ||
) | ||
SET _RUN_ARRAY= | ||
|
||
IF "%1" == "" || "%1" == "2" || "%1" == "mask" ( | ||
SET "_RUN_MASK=0" | ||
IF [%1] == [] SET "_RUN_MASK=1" | ||
IF [%1] == [2] SET "_RUN_MASK=1" | ||
IF [%1] == [mask] SET "_RUN_MASK=1" | ||
IF %_RUN_MASK% == 1 ( | ||
ECHO Building and running the mask approach... | ||
ECHO( | ||
ECHO: | ||
g++ -Ofast PrimeCPP_mask.cpp -std=c++17 -lstdc++ -oPrimes_mask.exe | ||
.\Primes_mask.exe | ||
ECHO( | ||
ECHO: | ||
) | ||
SET _RUN_MASK= |