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

📄 string.cpp

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

#include "usual.h"
#include "cmdl.h"

/* /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ */
/*     string                               */
/* /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ */

void cmdl_string::report_error()
{
switch (error) {
   case NoValue:
      foutput ("use:\n@=<string> or @ <string>\nMay use quotes around a string that contains spaces\n");
      break;
   default:
      cmdl::report_error();
   }
}

/* /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ */

bool cmdl_string::scan (cmdlscan& s)
{
if (!prelude()) return FALSE;
char* newval= getvalue (s);
delete value;   //out with the old
value= newval;  //in with the new
if (!value) return FALSE;
}

⌨️ 快捷键说明

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