From e43aee058a8744ffbc17ccd473602a3aa735b5a8 Mon Sep 17 00:00:00 2001 From: gwdwyy Date: Thu, 11 Jul 2013 17:48:30 +0800 Subject: [PATCH] finished demo --- Makefile | 2 +- demo.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 225052b..904acc9 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ SRCDIR = ./src SRCLIB = $(SRCDIR)/libcppjieba.a # remove the objs after compilation -.INTERMEDIATE: $(OBJS) *.o +.INTERMEDIATE: $(OBJS) .PHONY: clean $(SRCLIB) # Main Targets diff --git a/demo.cpp b/demo.cpp index fb76d28..11f9e5c 100644 --- a/demo.cpp +++ b/demo.cpp @@ -8,7 +8,7 @@ using namespace CppJieba; int main() { Segment segment; - /* + if(!segment.init("./dicts/segdict.utf8.v2.1")) { cerr<<"1"<