- 博客(4)
- 收藏
- 关注
转载 malloc函数的用法:转自百度百科
在使用上,malloc 和 new 至少有两个不同: new 返回指定类型的指针,并且可以自动计算所需要大小。比如:123int*p;p=newint;//返回类型为int*类型(整数型指针),分配大小为sizeof(int);或:12
2014-05-10 13:45:50 887
转载 C++中string erase函数的使用(转载)
erase函数的原型如下:(1)string& erase ( size_t pos = 0, size_t n = npos );(2)iterator erase ( iterator position );(3)iterator erase ( iterator first, iterator last );也就是说有三种用法:(1)erase(pos,n); 删除从pos开始的n个字符,比
2014-05-09 10:00:17 397
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人