会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tech Repository
博客园
首页
新随笔
联系
订阅
管理
2013年8月14日
C++创建对象的两种方式
摘要: C++创建对象有两种方式,在栈上创建对象(Objects on the Stack)和在堆上创建对象(Objects on the Heap)。 假设我们有以下的类: 1 #include 2 using std::string; 3 4 class SpreadsheetCell{ 5 ...
阅读全文
posted @ 2013-08-14 16:56 macemers
阅读(12078)
评论(0)
推荐(1)
公告