📄 test-str.cpp
字号:
#ifdef NO_FAKE
#include <iostream.h>
#include <strstream.h>
#else
#include "iostrm.h"
#endif
const int BUFFSIZE = 128;
char buff[BUFFSIZE];
int main()
{
ostrstream out(buff,BUFFSIZE);
out << "hello" << ends; // MUST have explicit ends (not needed for fake iostreams)
// at this point buff is 'hello'
cout << buff << endl;
out.seekp(0);
out << "dolly" << ends;
// shd be "dolly"
cout << buff << endl;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -