http://www.cnblogs.com/pigerhan/archive/2013/02/26/2933590.html

#include "Person.h"
#include <string>
#include <iostream> Person::Person()
{ }
void Person::sayHello()
{
std::cout << "hello world";
} int main(void)
{
Humankind humanKind = Humankind();
humanKind.sayHello(); Person person = static_cast<Person>(humanKind); humanKind.sayHello();
person.sayHello();
std::cin.get();
}

最新文章

  1. poj1200-Crazy Search(hash入门经典)
  2. 关于MFi认证你所必须要知道的事情
  3. 【转载】MySQL启多个实例
  4. Gunicorn 文档翻译
  5. 使用ReflectionTestUtils解决依赖注入
  6. Android双击返回键退出Activity的两种方法
  7. Angularjs^1.2.9 搜索关键字高亮显示
  8. 小故事理解TCP/IP连接时的三次握手
  9. ReactiveCocoa应用篇(二)
  10. LaTex计数器
  11. JMeter&#160;JMeter远程分布式联机性能测试
  12. Cocos2d-x CCControlPotentiometer之圆形音量button及特效
  13. HTML标签播放MP4视频
  14. 解决Tax discount configure 报出异常
  15. Linux ulimit和动态修改MySQL最大线程数限制
  16. 模拟alert,confirm 阻塞状态
  17. Web Service Error wsse:InvalidSecurity Policy Requires Integrity (Doc ID 1370736.1)
  18. 用ldapsearch验证LDAP认证信息
  19. python-使用递归实现二分法
  20. [Asp.net本质论]重新认识url

热门文章

  1. 细化如何安装LNMP + Zabbix 监控安装文档以及故障排除
  2. LINUX优化得很好的sysctl.conf配置
  3. sublime text 2 配置php调试环境
  4. git生成秘钥之后同步到服务器
  5. keystone v3 相关介绍
  6. sharepoint---RBS回收站清空设置
  7. 方法重写和方法重载;this关键字和super关键字
  8. 查看Android应用包名package和入口activity名称
  9. wxpython 基本的控件 (文本)
  10. linux skill