
常用总结
文章平均质量分 92
YanWenCheng_
日常总结
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
机器学习
http://blog.csdn.net/longxinchen_ml/article/details/50749614 http://blog.csdn.net/han_xiaoyang/article/details/50759472转载 2020-11-18 00:10:07 · 146 阅读 · 0 评论 -
字符串实现大数加减乘除
#include<iostream> #include<algorithm> #include<string> #include<cstring> #include<cstdlib> using namespace std; const int MAXINT =1001; class BigInteger { public: Big...原创 2020-03-13 19:47:03 · 873 阅读 · 0 评论 -
进制之间转化算法
1、十进制转其他进制 引出此通用方法,但是只能用与十进制转10以内进制;eg:16进制有ABXDEF #include<iostream> #include<vector> using namespace std; void Convert(int n, int x) { vector<int> answer; if(n==0) { ...原创 2020-03-10 16:06:26 · 293 阅读 · 0 评论 -
表达式求值一个好的思路(非栈实现)
#include<cstdio> #include<iostream> using namespace std; int main() { int num; double arr[1000]={0}; while(cin>>num) { arr[0]=num; char c; int...原创 2020-03-07 17:14:37 · 415 阅读 · 0 评论 -
Linux系统调用 - 获取文件状态 (stat, lstat和fstat)
获取文件状态的系统调用有三个,分别是stat,fstat和lstat,其实他们的作用是一样的,都是查询某个文件的状态。如果查询成功,会把文件状态的信息填充在一个stat结构体中。他们的函数定义分别如下: int stat(const char *path, struct stat *buf); int fstat(int fd, struct stat *buf); int lstat(const...转载 2020-02-12 13:53:41 · 1633 阅读 · 0 评论 -
STDIN_FILENO与stdin的区别
STDIN_FILENO与stdin的区别: STDIN_FILENO: 1).数据类型:int 2).层次:系统级的API,是一个文件句柄,定义在<unistd.h>中。 3).相应的函数:open(),close(),read(),write(),lseek()等系统级别的函数。 stdin: 1).**数据类型:FILE *** 2).层次:c语言的提供的标准输入流。c语言标准库...原创 2020-01-30 00:27:02 · 1709 阅读 · 0 评论 -
C++ 光标定位函数
在C++显示中,我们想要光标出现在我们想要的位置,可以使用下面这段代码 HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);//定义显示器句柄变量,并且这个只能在每个头文件中单独定义句柄和函数,否则无效 void gotoxy(HANDLE hOut, int x, int y)//其中x,y是与正常理解相反的,注意区分 { COORD pos; pos...转载 2020-01-29 15:09:24 · 2022 阅读 · 0 评论 -
静态库和动态库的优缺点
一、库的类型 (一) 在windows中 .dll 动态库 .lib 静态库 库即为源代码的二进制文件 (二) 在linux中 .so 动态库 .a 静态库 (三) 静态库和动态库的优缺点 我们通常把一些公用函数制作成函数库,供其它程序使用。 函数库分为静态库和动态库两种。 静态库在程序编译时会被连接到目标代码中,程序运行时将不再需要该静态库。 动态库在程序编译时并不会被连接到目标代码中...原创 2020-01-15 19:54:45 · 566 阅读 · 0 评论