mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 23:23:55 +00:00
Update c++-cn.html.markdown
Line 325: update myDog.printDog() to myDog.print().
This commit is contained in:
parent
fbb7ddcac3
commit
8aaffa3f62
@ -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”
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user