即使按ctrl D后,我也无法终止lex程序的输入,它只会继续! 可能出了什么问题?我正在使用适用于 Windows 的 flex 编译器。
最佳答案
在 Windows 上:
您需要 Ctrl+Z 然后 Enter 而不是 Ctrl+D,即在 Unix 和 Linux 中可用(在 Linux 上只需 Ctrl+D 即可)
Note: Both work on empty lines, so after entering any text, press Enter to go to next line (which will be empty), then these key combos will be effective.
关于c - Lex 程序输入不会终止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49534477/