微软的编译器(C++)#pragma comment(linker, "/STACK:102400000,102400000") G++ int size = 256 << 20; // 256MB char *p = (char*)malloc(size) + size; __...
分类:
编程语言 时间:
2015-05-06 01:14:34
阅读次数:
2653
对于无向边使用并查集合并成一个集合,对于有向边使用判断是否存在环
唯一无语的地方就是看输入是百万级的,加个输入挂跑9s,不加挂跑了5s
#include
#include
#include
#include
using namespace std;
#pragma comment(linker, "/STACK:102400000,102400000")
const int maxn = 10...
分类:
编程语言 时间:
2015-05-05 23:54:39
阅读次数:
235
一.VS2010中添加lib库引用: 1 菜单 ?项目---> 属性--->配置属性-->链接器---->输入---附加依赖项, ?加入库名,如: my_API.lib; ?或是在cpp源文件中用代码#pragma comment(lib,"my_API.lib")代替. ?此时再编译会...
分类:
其他好文 时间:
2015-05-05 17:02:31
阅读次数:
160
小例子:http://soft.yesky.com/238/2035738.shtml服务器程序:#include #include #pragma comment(lib, "ws2_32.lib")using namespace std;int main (){ printf("[SERV...
分类:
其他好文 时间:
2015-05-04 21:41:03
阅读次数:
179
使用命令行 , 输入 Exec=env UBUNTU_MENUPROXY=0 /eclipse 就可以了或者建立一个Eclipse的快捷方式,eclipse.desktp内容如下Type=Application Name=Eclipse Comment=Eclipse Integr...
分类:
系统相关 时间:
2015-05-03 20:22:32
阅读次数:
209
select column_name,column_comment from INFORMATION_SCHEMA.columns where table_name='my_table';或者show full columns from my_table其中my_table为具体的表名。
分类:
数据库 时间:
2015-05-03 15:55:10
阅读次数:
142
用户、组、权限详解一、用户管理命令的详解useradd增加用户-uuid:指定增加用户的uid-ggid:指定用户的主要组-GGid,...:指定用户的附属组-c“comment”:指定用户注释信息-d路径:指定用户家目录的路径-s路径:指定用户登录的shelleg:/sbin/nologin-m-k:强制创建家目录-M:..
分类:
其他好文 时间:
2015-05-03 14:45:38
阅读次数:
141
1.注释篇Any comment that forces you to look in another module for the meaning of that comment has failed to communicateto you and is not worth the bits i...
分类:
其他好文 时间:
2015-05-02 11:09:37
阅读次数:
145
题意:一个文本串+多个模板串的匹配问题思路:裸的ac自动机。 1 #pragma comment(linker, "/STACK:10240000,10240000") 2 3 #include 4 #include 5 #include 6 #include 7 #incl...
分类:
其他好文 时间:
2015-05-02 06:17:27
阅读次数:
359
yum install samba;Samba的配置文件是/etc/samba/smb.conf添加如下共享目录[myshare222]comment = share for userspath = /data/www/mkaibrowseable = yeswritable = yespublic...
分类:
其他好文 时间:
2015-05-01 01:47:53
阅读次数:
119