test.c

来自「早期freebsd实现」· C语言 代码 · 共 27 行

C
27
字号
/*   Tests the generated perfect has function.   The -v option prints diagnostics as to whether a word is in    the set or not.  Without -v the program is useful for timing.*/   #include <stdio.h>#define MAX_LEN 80int main (argc, argv)      int   argc;     char *argv[];{  int  verbose = argc > 1 ? 1 : 0;  char buf[MAX_LEN];  while (gets (buf))     if (in_word_set (buf, strlen (buf)) && verbose)       printf ("in word set %s\n", buf);    else if (verbose)       printf ("NOT in word set %s\n", buf);  return 0;}

⌨️ 快捷键说明

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