From 8aaffa3f625ec16b8003ae9459666bb71436d464 Mon Sep 17 00:00:00 2001 From: Bo Liu Date: Sun, 11 Sep 2016 19:20:26 +0800 Subject: Update c++-cn.html.markdown Line 325: update myDog.printDog() to myDog.print(). --- zh-cn/c++-cn.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zh-cn') 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” -- cgit v1.2.3