13 lines
225 B
C++
13 lines
225 B
C++
#include <iostream.h>
|
|
|
|
void *operator new( size_t, ostream *p ) { return( p ); }
|
|
|
|
void main( void ) {
|
|
|
|
char blob[512];
|
|
|
|
ostream *p = new ( blob ) ostream ( cout );
|
|
*p << "hi" << endl;
|
|
p->~ostream();
|
|
}
|