📄 charing.h
字号:
/*!
\file Charing.h
\brief charing is like string
Copyright (c) 2002-2004 shadow
All rights reserved.<BR>
\b License NYSL<BR>
\b Create 2004/03/27
\author shadow
$Revision: 1.1 $
$Date: 2004/04/13 13:04:12 $
*/
#ifndef _CHARING_
#define _CHARING_
#include <sys/types.h>
#define CHARSIZE 64
class Charing{
private:
char str[CHARSIZE];
int length;
const int maxsize;
public:
Charing();
Charing(const char s);
Charing(const char *s);
~Charing();
int GetLength();
int Set(const char *s);
int Setf(const char *format, ...);
void Reset();
int Add(const char *s);
int Insert(int pos, const Charing& s);
int Remove(int pos, int width);
Charing operator+(const Charing& s);
Charing& operator=(const char s);
Charing& operator=(const char *s);
Charing& operator=(const Charing& s);
Charing& operator+=(const Charing& s);
operator char *();
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -