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

📄 comment.cpp

📁 Using the UnderC Tokenizer Class It s often necessary to parse complex text files, where standard
💻 CPP
字号:
#include <classlib.h>
using namespace std;
#include <uc/tokens.h>

void grab_comments(const char* file)
{
  Tokenizer tok(file);
  while (tok.go_to("/*")) {
   cout << tok.line() << ": ";
   do { cout << tok.getch(); }
   while (! tok.next_is("*/"));
   cout << endl;
  }
}

int main(int argc, char**argv)
{
 grab_comments(argv[1]);
}

⌨️ 快捷键说明

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