Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update program #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
CXXFLAGS = -std=c++11

LDFLAGS = -lcurses -lboost_regex
LDCONFIG = $(shell which ldconfig 2>/dev/null || echo /sbin/ldconfig)
ifneq (,$(findstring libtinfo,$(shell $(LDCONFIG) -p)))
ifneq ($(findstring libtinfo,$(shell $(LDCONFIG) -p)))

LDFLAGS += -ltinfo

endif

BINS = regex

.PHONY: all

all: $(BINS)

regex: regex.cpp

.PHONY: clean

clean:
rm -f $(BINS)
2 changes: 1 addition & 1 deletion problems/problem1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Literal Strings: Match the lines with the string "abc." in them.
--line
abc.
abc.def
cout << "abc." << endl
count << "abc." << endl
abc
abcdef
123
Expand Down