📄 record.cpp
字号:
Record::Record() : name()
{
}
char Record::key_letter(int position) const
{
return name.key_letter(position);
}
Record::operator Key() const
{
return name;
}
Record::Record (const Key &a_name)
{
name = a_name;
}
int alphabetic_order(char c)
/*
Post:
The function returns the alphabetic position of character c, or it returns 0 if
the character is blank.
*/
{
if (c == ' ') return 0;
if ('a' <= c && c <= 'z') return c - 'a' + 1;
if ('A' <= c && c <= 'Z') return c - 'A' + 1;
return 27;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -