⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 record.cpp

📁 数据结构与程序设计教材源码 数据结构与程序设计教材源码
💻 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 + -