随笔分类 - C++
摘要:这里写了关于高精度的加减乘除运算,前面三种都可用我们平时列式子,打草稿的思维写出来,对位相加,对位相减,错位相乘。但是除法就需要注意了,它的商很不好计算,不信的可以自己想一下思路再看下面,具体的除法思路在下面代码的注释中
阅读全文
摘要:#include"iostream" #include"string.h" using namespace std; //BF算法 int strfind(char *s1,char *s2,int pos){ int len1 = strlen(s1); int len2 = strlen(s2); int i = pos - 1,j = 0; while(j...
阅读全文
摘要:#include"iostream" #include"iomanip" #include"fstream" using namespace std; //复制 文件path2 到 文件path1,path1不存在就创建 bool fileCopy(char *path1,char *path2); int main(){ fileCopy("my1.png","屏幕截图(1).png"...
阅读全文
摘要:1 #include"iostream" 2 #include"time.h" 3 using namespace std; 4 class matrix{ 5 private: 6 double **a; 7 int list; 8 int line; 9 public: 10 matrix(int line,i...
阅读全文

浙公网安备 33010602011771号