• 鸿雁

    下载资源在哪里呢???

    鸿雁发表于 2020/6/22 11:02:18
  • hughzhangcy

    @管理员 Mac电脑打不开买的电子书,请帮解决下

    hughzhangcy发表于 2020/6/12 11:15:53
  • chaolizheng2008

    今天到货的PPT动画传奇,装订还可以,但是内页排版色彩过于花俏,特别是绿底白字,看不清楚,阅读非常吃力。另外,下载资源下载速度很慢,要4个多小时,请转作者陈魁同志看如何解决。

    chaolizheng2008发表于 2020/5/13 16:56:07
  • louis

    下面是VC++深入详解中的例子,作了修改,如下:
    // EX08.cpp : 此文件包含 “main” 函数。程序执行将在此处开始并结束。
    //

    include “pch.h”

    include <iostream>

    using namespace std;

    class Animal
    {
    public:
    void eat()
    {
    cout << “animal eat” << endl;
    }
    void sleep()
    {
    cout << “animal sleep” << endl;
    }
    virtual void breathe()
    {
    cout << “animal breathe” << endl;
    }

    };
    class Fish : public Animal
    {
    public:
    void breathe()
    {
    cout << “fish bubble” << endl;
    }
    };

    void fn(Animal *pAn)
    {
    pAn->breathe();
    }

    void fcn(Animal an)
    {
    an.breathe();
    }
    int main()
    {
    Animal pAnan;
    Animal
    pAnfh;
    Fish *pFh;

    Animal an1;
    pAnan = &an1;
    Fish fh1;
    pAnfh = &fh1;
    pFh = &fh1;
    
    fn(pAnan);
    fn(pAnfh);
    fn(pFh);
    
    fcn(*pAnan);
    fcn(*pAnfh);
    fcn(*pFh);
    
    fcn(an1);
    fcn(fh1);
    return 0;
    

    }

    执行结果:
    animal breathe
    fish bubble
    fish bubble
    animal breathe
    animal breathe
    animal breathe
    animal breathe
    animal breathe

    请高手再讲解一下这个结果的原理。为什么执行结果的第5,6,8行不是fish bubble?
    谢谢!

    louis发表于 2020/4/25 18:00:57
  • 北极熊的大白毛

    我在京东上买了一本书叫剑指offer(第二版),何海涛写的。书中122页的题目二(删除链表中重复的节点)下面的示意图印刷出错,希望及时更改

    北极熊的大白毛发表于 2020/4/21 14:46:17
  • 1
  • ...
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • ...
  • 81