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
mozilla内核(firefox, flock等) -moz webkit内核(safari, chrome等) -webkit opera内核(opera浏览器) -o trident内核(ie 浏览器) -ms ...
分类:
Web程序 时间:
2019-05-22 17:23:54
阅读次数:
149
结果自己试验,不贴。 首先用代码生成下代码: 然后生成了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
以留言板为例。 数据表设计 分析数据表结构:有哪些信息需要存储:留言信息:ID,留言标题,留言内容,留言时间,留言人 选择PHP连接数据库的方式 PDO:可扩展性更好,支持预处理,面向对象 MySQLi:只支持MySQL操作,支持预处理,面向对象和过程,效率较高 mysql:只支持MySQL数据库, ...
分类:
Web程序 时间:
2019-05-13 12:42:05
阅读次数:
164
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