#incude "apstring.h" C++ 工作没有人知道吗?
#incude "apstring.h" C++ isn't working anyone know?
当我尝试包含apstring.h时,我有一个错误,有人知道替代代码等吗?下面是错误所在的代码:
#include <iostream>
#include "apstring.h" //error is located under #include, the error is (Error: cannot open source file "apstring.h")
using namespace std;
int main()
{
system ("pause");
return 0;
}
你可以在这里找到头文件:http://mathbits.com/MathBits/CompSci/apstring.h
和对应的cpp文件:https://users.cs.duke.edu/ola/美联社/代码/apstring.cpp
你必须用strcpy_s代替strcpy以避免安全问题
这是我在visual studio 2015中与您的程序一起工作的两个文件的链接:
http://pastebin.com/qanbAF1D你只需要在visual studio中创建一个控制台应用,添加你的主文件和提供的CPP文件
,然后在visual studio中添加名为header Files的头文件部分添加头文件
如果你在Linux下,你必须把文件放在同一个目录下,但我没有在Linux下测试
相关文章:
- 有没有办法知道Tracer是否成功地完全连接到了jaegerclientcpp中的jaeger后端服务器
- C++ "noskipws"没有按预期工作,如何正确允许字符串中的空格?
- fflush() 没有按预期工作
- 为什么循环没有中断,并且 if 条件没有按预期工作?
- 我的解码程序的两个部分没有按预期工作
- 有没有办法知道C++中将打印到标准输出的大小?
- 有没有办法知道父窗口的类型(基于框架或对话框)?
- 为什么这个 SFINAE 没有按预期工作?
- 有没有人有书面证据来保证函数中参数的定义方式与普通变量声明相同?
- 为什么将uint8_t读取为十六进制没有按预期工作?
- 有没有人知道如何终止ESP8266 http Web服务器/接入点
- 如何向其他节点发出信号,表明主节点没有更多工作可用
- 防止Boost :: Asio :: IO_Context在没有更多工作时返回
- 为什么"std::async"没有按预期工作?
- 为什么这种提升::容器::字符串和标准::字符串比较没有按预期工作?
- 如何为数据库设置密码,以便没有人可以访问它
- 二问.在我的过程编程考试中,没有人回答正确
- 有没有人知道如何在C++的链表上运行插值搜索
- 有没有人有一个OpenGL ES 2.0 Qt 5示例在iOS下工作
- #incude "apstring.h" C++ 工作没有人知道吗?