26 lines
393 B
C++
26 lines
393 B
C++
#include <iostream>
|
|
|
|
#include "AppendBuffer.h"
|
|
|
|
using namespace std;
|
|
|
|
|
|
static const string TestString2 = " This is a test of the self-destruct mechanism.";
|
|
|
|
int
|
|
main()
|
|
{
|
|
kte::AppendBuffer buf;
|
|
|
|
buf.Append('*');
|
|
|
|
cout << "append buffer\n";
|
|
buf.Append("Hello, world.");
|
|
|
|
cout << "append buffer 2\n";
|
|
buf.Append(TestString2);
|
|
buf.Append('*');
|
|
cout << buf << "\n";
|
|
}
|
|
|