a=[1 2 3; 4 5 6]; fid = fopen('haha.txt', 'w+');fprintf(fid,'%8.4f %8.3f %d\n', a');fclose(fid); type haha.txt 参考:https://wenku.baidu.com/view/f3cc145 ...
分类:
其他好文 时间:
2019-05-25 20:19:17
阅读次数:
161
结果自己试验,不贴。 首先用代码生成下代码: 然后生成了1K个宏定义,然后加点东西运行: ...
分类:
其他好文 时间:
2019-05-22 15:26:06
阅读次数:
82
Beautiful Subarrays 题解: 把数字转化成2进制之后,用字典树去维护。 想到字典树之后就应该是一道很容易写的题目了。 代码: #include<bits/stdc++.h> using namespace std; #define Fopen freopen("_in.txt"," ...
分类:
其他好文 时间:
2019-05-20 16:56:08
阅读次数:
107
在用VS2013开发一AntiRootkit程序时遇到下面错误: error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation ...
分类:
其他好文 时间:
2019-05-17 13:31:57
阅读次数:
356
环境里一直是跑PHP7.1版本,为了适应未来发展,现在升级为PHP7.3.5但是发现无法安装SSH2扩展。/ssh2-1.1.2/ssh2_fopen_wrappers.c:737:20:note:expected‘char’butargumentisoftype‘structzend_string’staticphp_streamphp_ssh2_exec_command(LIBSSH2_SES
分类:
Web程序 时间:
2019-05-16 15:06:28
阅读次数:
599
Anton and School - 2 题解: 枚举每个左括号作为必选的。 那么方案数就应该是下面的 1 , 然后不断化简, 通过范德蒙恒等式 , 可以将其化为一个组合数。 代码: #include<bits/stdc++.h> using namespace std; #define Fopen ...
分类:
其他好文 时间:
2019-05-12 20:11:31
阅读次数:
162
Three Statesy 题解: 以3个大陆为起点,都dfs一遍,求出该大陆到其他点的最小距离是多少, 然后枚举每个点作为3个大陆的路径交点。 代码: #include<bits/stdc++.h> using namespace std; #define Fopen freopen("_in.t ...
分类:
其他好文 时间:
2019-05-12 14:06:37
阅读次数:
131
本系列根据项目 "ffmpeg libav tutorial" 翻译而来 Chapter 0 万物之源 —— hello world 然而,本节的程序并不会在终端打印“Hello world”,而是会打印原视频文件的一些信息,比如封装格式、视频时长、分辨率、音频通道数。最后,我们将解码每一帧视频,并 ...
分类:
其他好文 时间:
2019-05-09 23:28:32
阅读次数:
167
#define mm(a) memset(a,0,sizeof(a));#define max(x,y) (x)>(y)?(x):(y) #define min(x,y) (x)<(y)?(x):(y) #define Fopen freopen("1.in","r",stdin);freopen( ...
分类:
移动开发 时间:
2019-05-05 20:46:15
阅读次数:
226
char buf[1 << 21], * p1 = buf, * p2 = buf; int Getc() { return p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 1<<21, stdin), p1== p2) ? EOF : *p1++; } /... ...
分类:
其他好文 时间:
2019-05-04 09:44:09
阅读次数:
133