From d3912107c4e1f0dfa645dc279bda43b92c05cb13 Mon Sep 17 00:00:00 2001 From: Aurelius84 Date: Mon, 25 May 2020 09:59:33 +0800 Subject: [PATCH] fix comment error and polish cout str --- .../10_day_practice/day6/虚函数/虚函数特性.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/practical_exercises/10_day_practice/day6/虚函数/虚函数特性.cpp b/practical_exercises/10_day_practice/day6/虚函数/虚函数特性.cpp index d4e3d6c..8ee62f7 100644 --- a/practical_exercises/10_day_practice/day6/虚函数/虚函数特性.cpp +++ b/practical_exercises/10_day_practice/day6/虚函数/虚函数特性.cpp @@ -3,28 +3,28 @@ using namespace std; class A { public: - void f(int i){cout<<"¡­A"<f(1); //µ÷ÓÃA::f - pB=&b; pB->f(1); //µ÷ÓÃA::f - pB=&c; pB->f(1); //µ÷ÓÃA::f - pB=&d; pB->f(1); //µ÷ÓÃA::f + pB=&b; pB->f(1); //µ÷ÓÃB::f + pB=&c; pB->f(1); //µ÷ÓÃC::f + pB=&d; pB->f(1); //µ÷ÓÃD::f system("pause"); return 0; }