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:
|
clean:
|
||||||
$(RM) $(OBJS)
|
$(RM) $(OBJS)
|
||||||
|
$(RM) main
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
$(RM) *~ .depend
|
$(RM) *~ .depend
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
CC=x86_64-w64-mingw32-gcc
|
CC=x86_64-w64-mingw32-gcc
|
||||||
CXX=x86_64-w64-mingw32-g++
|
CXX=x86_64-w64-mingw32-g++
|
||||||
RM=rm -f
|
RM=rm -f
|
||||||
CPPFLAGS=-Wall
|
CPPFLAGS=-Wall -std=gnu++17
|
||||||
LDFLAGS=-static
|
LDFLAGS=-static
|
||||||
LDLIBS=-lm
|
LDLIBS=-lm
|
||||||
|
|
||||||
|
|
4
main.cpp
4
main.cpp
|
@ -5,8 +5,8 @@
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
int numDigits = 0;
|
int numDigits = 0;
|
||||||
if(argc < 2) {
|
if(argc < 2) {
|
||||||
std::cout << "Usage: spigot <numDigits>" << std::endl;
|
numDigits = 50000;
|
||||||
return -1;
|
std::cout << "Defaulting to 50000 digits..." << std::endl;
|
||||||
} else {
|
} else {
|
||||||
numDigits = std::atoi((const char *)argv[1]);
|
numDigits = std::atoi((const char *)argv[1]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue