如何在Code :: Blocks中使用Koolplot创建图形? [英] How Do I Create A Graph Using Koolplot In Code::Blocks?
本文介绍了如何在Code :: Blocks中使用Koolplot创建图形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在code :: blocks中使用koolplot库创建图形?我正在使用c ++运行控制台应用程序。简单的代码
How do I create a graph using koolplot library in code::blocks? I am running a console application using c++. Its simple code
#include "koolplot.h"
int main()
{
Plotdata x(-3.0, 3.0), y = sin(x) - 0.5*x;
plot(x, y);
return 0;
}
但我收到错误:
致命错误:graphics.h:否这样的文件或目录
请帮助
but I get an error:
fatal error: graphics.h: No such file or directory
Please help
推荐答案
我通过安装图形头文件并制作一些来解决这个问题必要的变更
http://www.codewithc.com/how-to-include-graphics-h-in-codeblocks/#sthash.uwvikIbG.dpuf]
但现在我收到了几个错误....
'''之前的预期标识符
任何帮助??
i solved that by installing graphics header file and making some necessary changes
http://www.codewithc.com/how-to-include-graphics-h-in-codeblocks/#sthash.uwvikIbG.dpuf]
but now i get several errors....
expected identifier before ‘[‘ token
any help??
这篇关于如何在Code :: Blocks中使用Koolplot创建图形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文