charing.h
来自「MONA是为数不多的C++语言编写的一个很小的操作系统」· C头文件 代码 · 共 48 行
H
48 行
/*!
\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 + =
减小字号Ctrl + -
显示快捷键?