- 博客(3)
- 资源 (7)
- 收藏
- 关注
原创 heap corruption detected
头文件string.h#include using namespace std;class Str{ char *m_str; int m_len;public: Str(); Str(const char * st); Str(const Str & st); ~Str(); Str & operator=(const Str &st); friend ostream & operato
2010-03-31 16:43:00
382
转载 getline函数输入要击两次回车的解决办法
这个是出问题的程序#include #include int main(){ using namespace std; string str; std::cout getline(cin,str); std::cout}比如说,我们输入"virus welcome back!",但是当我们输入后按回车,程序并不运行cout语句,而是光标还在编绎窗口
2010-03-29 20:01:00
1149
转载 浮点型数据
C语言和C#语言中,对于浮点类型的数据采用单精度类型(float)和双精度类型(double)来存储,float数据占用32bit,double数据占用64bit,我们在声明一个变量float f= 2.25f的时候,是如何分配内存的呢?如果胡乱分配,那世界岂不是乱套了么,其实不论是float还是double在存储方式上都是遵从IEEE的规范的,float遵从的是IEEE R32.24 ,而do
2010-03-29 19:46:00
904
RFC2633中文版
2011-01-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人