我正在编写关于构建自己的LISP的教程(http://www.buildyourownlisp.com/chapter4_interactive_prompt),出于某种原因,当我尝试编译时,我得到了这个:
REPL.c:4:10: fatal error: 'editline/readline.h' file not found
#include <editline/history.h>
^
1 error generated.
Run Code Online (Sandbox Code Playgroud)
我已经安装了osx开发人员工具,brew正在显示readline已安装,当我尝试brew install editline时它不知道该怎么做.
这是我的代码:
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <editline/readline.h>
4 #include <editline/history.h>
5
6 int main(int argc, char** argv) {
7
8 /* version/exit info */
9 puts("Edward Version 0.0.1");
10 puts("Press Ctrl+c to Exit\n");
11
12 /* endless loop for main REPL */
13 while (1) {
14 /* output prompt and read line */
15 char* input = …Run Code Online (Sandbox Code Playgroud) 我有 3 个 CSV 文件,每个文件大约有 15 万行。他们已经在 CSV 中获得了 ID,并且关联已经在其中进行了。有没有一种简单的方法可以跳过 id 值的自动分配,而是使用 CSV 中已有的值?