Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1443490
  • 博文数量: 596
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 173
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-06 15:50
个人简介

在线笔记

文章分类

全部博文(596)

文章存档

2016年(1)

2015年(104)

2014年(228)

2013年(226)

2012年(26)

2011年(11)

发布时间:2016-02-23 14:50:37

程序运行的时候,需要内存空间存放数据。一般来说,系统会划分出两种不同的内存空间:一种叫做stack(栈),另一种叫做heap(堆)。区别:stack是有结构的,每个区块按照一定次序存放,可以明确知道每个区块的大小(先入后出);heap是没有结构的,数据可以任意存放。因此,stack的寻址速度要快于heap。每个线程分配.........【阅读全文】

阅读(1208) | 评论(0) | 转发(0)

发布时间:2014-12-10 10:59:37

SetName方法#include <iostream>#include <string>#include <stdio.h>using namespace std;class student{public:    student(){        printf("%s construct.........【阅读全文】

阅读(862) | 评论(0) | 转发(0)

发布时间:2014-12-10 10:41:28

1. //基数student的析构函数不是vi#include <iostream>#include <stdio.h>using namespace std;class student{public:    student(){        printf("%s co.........【阅读全文】

阅读(760) | 评论(0) | 转发(0)

发布时间:2014-12-02 11:52:43

#include using namespace std;template void Swap(AnyType &a, AnyType &b){    AnyType tmp;    tmp = a;    a = b;&.........【阅读全文】

阅读(747) | 评论(0) | 转发(0)

发布时间:2014-12-02 11:19:32

#include using namespace std;class Student{public:    void Register()const {        m_register = true;    }private:.........【阅读全文】

阅读(737) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册