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

📄 scanner.h

📁 c++编写的命令行解释器
💻 H
字号:
/***************************************************************
File: SCANNER.H               Copyright 1992 by Dlugosz Software
part of the CMDL package for command-line parsing
the scanner class, used as part of parsing the strings.
This version may be used freely, with attribution.
***************************************************************/

class cmdlscan {
   const char* source;  //name of where this came from (for error reports)
   cmdlscan* link;      //previous string
   char* s;     //the string being scanned
   int cursor;  //the current scan position
public:
   cmdlscan (char* s);
   int mark() { return cursor; };
   void restore (int x) { cursor= x; };
   void skipws();  //skip whitespace
   void extract_word (char* buf, int len);
   void operator++ () { cursor++; }
   char thischar() { return s[cursor]; }
   char* extract_string();
   };

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -