Update c++-cn.html.markdown

Line 325: update myDog.printDog() to myDog.print().
This commit is contained in:
Bo Liu 2016-09-11 19:20:26 +08:00 committed by GitHub
parent fbb7ddcac3
commit 8aaffa3f62

View File

@ -322,7 +322,7 @@ int main() {
Dog myDog; // 此时显示“A dog has been constructed”
myDog.setName("Barkley");
myDog.setWeight(10);
myDog.printDog(); // 显示“Dog is Barkley and weighs 10 kg”
myDog.print(); // 显示“Dog is Barkley and weighs 10 kg”
return 0;
} // 显示“Goodbye Barkley”