摘要: 这两个就是格式控制的~ostream成员函数里面的,也可以用输出流操作符来控制,都一样的~附给你一些看看~ 其中cout.setf跟setiosflags一样的,cout.precision跟setprecision一样~ #include <iomanip> 这里面iomanip的作用比较多: 主 阅读全文
posted @ 2018-03-19 20:52 JhonnyK 阅读(1210) 评论(0) 推荐(0) 编辑
摘要: getopt被用来解析命令行选项参数。 #include <unistd.h> extern char *optarg; //选项的参数指针 extern int optind, //下一次调用getopt的时,从optind存储的位置处重新开始检查选项。 extern int opterr, // 阅读全文
posted @ 2018-03-19 16:47 JhonnyK 阅读(218) 评论(0) 推荐(0) 编辑
摘要: blas:提供向量和矩阵的基本运算,用fortran编写。 lapack:提供向量和矩阵的高级运算,用fortran编写,内部以blas为基础库。 cblas:提供c接口的blas库,源码通过f2c转换为C语言。f2c官网:http://www.netlib.org/f2c/ clapack:提供c 阅读全文
posted @ 2018-03-19 09:49 JhonnyK 阅读(3325) 评论(0) 推荐(0) 编辑