Skip to content

Commit

Permalink
修改README中的文件路径
Browse files Browse the repository at this point in the history
  • Loading branch information
woodyxiong committed Oct 8, 2017
1 parent b9c8cec commit 7a7ab92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void parseSimple(){
void parseSimple(){
try {
Simplexml* simplexml;
simplexml=new Simplexml(xmlpathError);
simplexml=new Simplexml("example1.xml");
cout<<"class1\n";
cout<<simplexml->child("class1")->child("student",0)->text()<<endl;
cout<<simplexml->child("class1")->child("student",1)->text()<<endl;
Expand All @@ -154,7 +154,7 @@ void parseSimple(){
void parseSimple(){
try {
Simplexml* simplexml;
simplexml=new Simplexml(xmlpathError);
simplexml=new Simplexml("example1.xml");
cout<<"class1\n";
simplexml->next("class1");//将头指针向子节点移动
cout<<simplexml->child("student",0)->text()<<endl;
Expand Down

0 comments on commit 7a7ab92

Please sign in to comment.