diff options
author | Bo Liu <hmybmny@gmail.com> | 2016-09-11 19:20:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-11 19:20:26 +0800 |
commit | 8aaffa3f625ec16b8003ae9459666bb71436d464 (patch) | |
tree | 475f2e47d4a53d98a1a2aa9f20d98380c9db7fd8 /zh-cn | |
parent | fbb7ddcac3d56feaac58bbb325c70253b2030f1b (diff) |
Update c++-cn.html.markdown
Line 325: update myDog.printDog() to myDog.print().
Diffstat (limited to 'zh-cn')
-rw-r--r-- | zh-cn/c++-cn.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zh-cn/c++-cn.html.markdown b/zh-cn/c++-cn.html.markdown index 5cf7e4c5..d71aa8d6 100644 --- a/zh-cn/c++-cn.html.markdown +++ b/zh-cn/c++-cn.html.markdown @@ -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”
|