?? buffer.cc
字號:
#include "buffer.h"#include <stdlib.h>#include <unistd.h>buffer::~buffer(){// delete text; // moved to term.cc due to line type replacement strategy// free( text );}buffer::buffer(){// text = ( char* )NULL; -- do nothing -- this could be called twice!// this is called once now, but would be twice upon line::line( int );// more recently, it isn't called at all.}buffer::buffer( int s ){ text = new char[ s ]; /* if( (// text = ( char* )malloc( s ) ) == NULL );// {} */}buffer::buffer( buffer* here ): text( here -> text ){}/*void buffer::resize( int size ){// text = ( char* )realloc( text, size );}*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -