我对Linux编程很陌生.我正在编译一个简单的C++代码g++:
#include“recip.hpp”
#include<cassert>
double recip (int i) {
// I should be non-zero.
assert (i != 0);
return 1.0/i;
}
Run Code Online (Sandbox Code Playgroud)
该文件recip.hpp存在于我当前的目录中.我不明白为什么我收到错误:
recip.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
Run Code Online (Sandbox Code Playgroud)
怎么了?