1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-20 13:31:43 +02:00

Merge pull request #2366 from HmyBmny/patch-1

Update c++-cn.html.markdown
This commit is contained in:
Geoff Liu
2016-09-11 15:52:00 -04:00
committed by GitHub

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”