前提条件是已经安装了g++要是没有安装,就yum install
g++1,编写Hello.cpp1>vim2>#include int main(){ printf("Hello,the world!");
return 0;}3>:w hello.cpp2,退出vim !q3,编译#g++ .....
分类:
编程语言 时间:
2014-05-25 22:19:17
阅读次数:
468
supervisor的安装也很简单:
直接用npm安装既可,键入命令: npm -g install supervisor
这里注意一点的就是,supervisor必须安装到全局,如果你不安装到全局,错误命令会提示你安装到全局。
如果不想安装到默认的全局,也可以自己修改全局路径到当前路径
npm config set prefix "路径"
安装完以后就可以用supervisor 来启动...
分类:
Web程序 时间:
2014-05-25 21:37:56
阅读次数:
337
1001
暴力
#include
#include
#include
using namespace std;
const int maxn = 100100;
int ll[maxn], rr[maxn];
struct node
{
int x, y, bj;
}e[maxn];
int main()
{
int cas = 1;
int T;
scanf("%d...
分类:
其他好文 时间:
2014-05-25 21:32:50
阅读次数:
268
最近写了一个接受socket数据包,然后再重组上层协议包的东西。每次read到数据就将数据添加到一个链表的尾部,然后检查是否收到了一个完整的包。为了减少内存碎片,把用过的链表节点添加到另外一个链表中,这样下次可以从这个cache链表中重用节点。
在debug的时候我把cache list中的数据打印出来,代码如下:
struct seg_node
{
void* bu...
分类:
其他好文 时间:
2014-05-25 21:31:09
阅读次数:
326
cd /d F:\wamp\bin\apache\Apache2.2.21\binhttpd.exe
-k install -n "noodle" -f "F:\wamp\bin\apache\Apache2.2.21\conf\httpd2.conf"★
control -> server -> ...
分类:
Web程序 时间:
2014-05-25 20:41:54
阅读次数:
244
root@OpenWrt:~# opkg updateroot@OpenWrt:~# opkg
install vsftpd openssh-sftp-serverroot@OpenWrt:~# /etc/init.d/vsftpd
enableroot@OpenWrt:~# /etc/init.d...
分类:
其他好文 时间:
2014-05-25 16:10:16
阅读次数:
384
主要来自ubuntu中文社区http://www.ubuntu.org.cn/support/documentation/doc/VMware首选,确认你已经安装了build-essential程序包:
apt-get install build-essential确认你已经安装了内核头文件包: u...
分类:
其他好文 时间:
2014-05-25 12:40:10
阅读次数:
299
说明:由于图形化界面方法(如Add/Remove... 和Synaptic Package
Manageer)比较简单,所以这里主要总结在终端通过命令行方式进行的软件包安装、卸载和删除的方法。一、Ubuntu中软件安装方法1、APT方式(1)普通安装:apt-get
install softname...
分类:
其他好文 时间:
2014-05-25 12:29:55
阅读次数:
256
通常我们通过登录具有外网ip的远程机器来连接内网的机器;本文介绍,通过putty进行ssh
tunnel,进而达到使用本机直接连接远程内网机器;1,在putty中创建一个session,输入具有外网ip的node信息:2,在connection以下找到SSH,打开SSH点击tunnel输入sourc...
分类:
其他好文 时间:
2014-05-25 11:38:32
阅读次数:
210
链接dp[x][y][node][sta]
表示走到在x,y位置node节点时状态为sta的方法数,因为只有2个病毒串,这时候的状态只有4种,根据可走的方向转移一下。这题输入的是m、N,先列后行,因为输反了,WA了N次啊。。
1 #include 2 #include 3 #include ...
分类:
其他好文 时间:
2014-05-25 11:37:30
阅读次数:
297