mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
finished demo
This commit is contained in:
parent
e5f4d05777
commit
e43aee058a
2
Makefile
2
Makefile
@ -12,7 +12,7 @@ SRCDIR = ./src
|
|||||||
SRCLIB = $(SRCDIR)/libcppjieba.a
|
SRCLIB = $(SRCDIR)/libcppjieba.a
|
||||||
|
|
||||||
# remove the objs after compilation
|
# remove the objs after compilation
|
||||||
.INTERMEDIATE: $(OBJS) *.o
|
.INTERMEDIATE: $(OBJS)
|
||||||
.PHONY: clean $(SRCLIB)
|
.PHONY: clean $(SRCLIB)
|
||||||
|
|
||||||
# Main Targets
|
# Main Targets
|
||||||
|
4
demo.cpp
4
demo.cpp
@ -8,7 +8,7 @@ using namespace CppJieba;
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
Segment segment;
|
Segment segment;
|
||||||
/*
|
|
||||||
if(!segment.init("./dicts/segdict.utf8.v2.1"))
|
if(!segment.init("./dicts/segdict.utf8.v2.1"))
|
||||||
{
|
{
|
||||||
cerr<<"1"<<endl;
|
cerr<<"1"<<endl;
|
||||||
@ -35,6 +35,6 @@ int main()
|
|||||||
segment.extract(title, res);
|
segment.extract(title, res);
|
||||||
|
|
||||||
segment.destroy();
|
segment.destroy();
|
||||||
*/
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user