Updated to default to 50k digits with no arguments, Makefile updates
This commit is contained in:
parent
ec2a96b0ad
commit
4f738e5609
3 changed files with 4 additions and 3 deletions
1
Makefile
1
Makefile
|
@ -24,6 +24,7 @@ depend: .depend
|
|||
|
||||
clean:
|
||||
$(RM) $(OBJS)
|
||||
$(RM) main
|
||||
|
||||
distclean: clean
|
||||
$(RM) *~ .depend
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
CC=x86_64-w64-mingw32-gcc
|
||||
CXX=x86_64-w64-mingw32-g++
|
||||
RM=rm -f
|
||||
CPPFLAGS=-Wall
|
||||
CPPFLAGS=-Wall -std=gnu++17
|
||||
LDFLAGS=-static
|
||||
LDLIBS=-lm
|
||||
|
||||
|
|
4
main.cpp
4
main.cpp
|
@ -5,8 +5,8 @@
|
|||
int main(int argc, char **argv) {
|
||||
int numDigits = 0;
|
||||
if(argc < 2) {
|
||||
std::cout << "Usage: spigot <numDigits>" << std::endl;
|
||||
return -1;
|
||||
numDigits = 50000;
|
||||
std::cout << "Defaulting to 50000 digits..." << std::endl;
|
||||
} else {
|
||||
numDigits = std::atoi((const char *)argv[1]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue