<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[        学习笔记]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/Equoid</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Equoid]]></copyright><item><title><![CDATA[Linux上的JDK安装(.tar.gz)]]></title><link>https://blog.csdn.net/Equoid/article/details/45242037</link><guid>https://blog.csdn.net/Equoid/article/details/45242037</guid><author>Equoid</author><pubDate>Fri, 24 Apr 2015 09:02:32 +0800</pubDate><description><![CDATA[step 1
java -version 查看是否有已安装的open jdk，有的话先卸载


step 2
tar zxvf ****.tar.gz 解压****.tar.gz
mv **** jdk 重命名解压出来的文件夹
mv jdk /usr/java/ 把改了名的文件夹放到/usr/java/


step 3 修改环境变量
vi /etc/profile
i 进]]></description><category></category></item><item><title><![CDATA[CentOS 配置静态IP]]></title><link>https://blog.csdn.net/Equoid/article/details/45242013</link><guid>https://blog.csdn.net/Equoid/article/details/45242013</guid><author>Equoid</author><pubDate>Fri, 24 Apr 2015 09:00:00 +0800</pubDate><description><![CDATA[/etc/sysconfig/network-scripts/ifcfg-eth0


DEVICE="eth0"
BOOTPROTO="static"
BROADCAST="192.168.0.255"
HWADDR="00:0C:29:8B:18:4C" //mac地址
IPADDR="192.168.0.101" //静态ip，改
IPV6INIT="yes"
NETMAS]]></description><category></category></item><item><title><![CDATA[socket 常用函数]]></title><link>https://blog.csdn.net/Equoid/article/details/45043271</link><guid>https://blog.csdn.net/Equoid/article/details/45043271</guid><author>Equoid</author><pubDate>Tue, 14 Apr 2015 15:59:07 +0800</pubDate><description><![CDATA[创建

int socket(int domain, int type, int protocol);
参数说明：
domain：协议域，又称协议族（family）。常用的协议族有AF_INET、AF_INET6、AF_LOCAL（或称AF_UNIX，Unix域Socket）、AF_ROUTE等。协议族决定了socket的地址类型，在通信中必须采用对应的地址，如AF_INET决定了要用ip]]></description><category></category></item><item><title><![CDATA[const void *a 与 void* const  a]]></title><link>https://blog.csdn.net/Equoid/article/details/45043069</link><guid>https://blog.csdn.net/Equoid/article/details/45043069</guid><author>Equoid</author><pubDate>Tue, 14 Apr 2015 15:47:58 +0800</pubDate><description><![CDATA[const void *a
定义了一个指针a，a可以指向任意类型的值，但它指向的值必须是常量。
在这种情况下，我们不能修改被指向的对象，但可以使指针指向其他对象。
例如：
const void *a;
*a=0x123;//是编译通不过的，因为*a中放的是个const值。const值是不能被改变的。

const int  m=1;
const int n=2;
a=&m;
a=&n;
/]]></description><category></category></item><item><title><![CDATA[timeval]]></title><link>https://blog.csdn.net/Equoid/article/details/45043021</link><guid>https://blog.csdn.net/Equoid/article/details/45043021</guid><author>Equoid</author><pubDate>Tue, 14 Apr 2015 15:45:37 +0800</pubDate><description><![CDATA[timeval结构的用于指定时间值。
//头文件 


//结构
timeval
{
    time_t tv_sec;  //秒 [long int]
    suseconds_t tv_usec;  //微秒 [long int]
};]]></description><category></category></item><item><title><![CDATA[inet_pton 与 sockaddr]]></title><link>https://blog.csdn.net/Equoid/article/details/45042709</link><guid>https://blog.csdn.net/Equoid/article/details/45042709</guid><author>Equoid</author><pubDate>Tue, 14 Apr 2015 15:25:44 +0800</pubDate><description><![CDATA[inet_pton：
将“点分十进制” -> “二进制整数”，支持ipv4地址和ipv6地址。
#include 
#include 
#include 

int inet_pton(int af, const char *src, void *dst);


第一个参数af是地址族，第二个参数*src是来源地址，第三个参数* dst接收转换后的数据。
inet_pton 是inet]]></description><category></category></item><item><title><![CDATA[select 与 fd_set]]></title><link>https://blog.csdn.net/Equoid/article/details/45042561</link><guid>https://blog.csdn.net/Equoid/article/details/45042561</guid><author>Equoid</author><pubDate>Tue, 14 Apr 2015 15:17:35 +0800</pubDate><description><![CDATA[select()，确定一个或多个套接口的状态，本函数用于确定一个或多个套接口的状态，对每一个套接口，调用者可查询它的可读性、可写性及错误状态信息，用fd_set结构来表示一组等待检查的套接口，在调用返回时，这个结构存有满足一定条件的套接口组的子集，并且select()返回满足条件的套接口的数目。


用途：
确定一个或多个套接口的状态，如需要则等待。
#include 
int PASC]]></description><category></category></item><item><title><![CDATA[argc 与 argv]]></title><link>https://blog.csdn.net/Equoid/article/details/44955611</link><guid>https://blog.csdn.net/Equoid/article/details/44955611</guid><author>Equoid</author><pubDate>Thu, 09 Apr 2015 09:51:10 +0800</pubDate><description><![CDATA[argc和argv中的arg指的是"参数"（arguments, argument counter 和 argument vector ）。
至少有两个参数至主函数：argc和argv，其中：
argc是一个计算提供的参数到程序；

argv是对字符串数组的指针。
argc, argv 用命令行编译程序时有用。
主函数main中变量(int argc, char *argv[ ])的含]]></description><category></category></item><item><title><![CDATA[make 与 makefile]]></title><link>https://blog.csdn.net/Equoid/article/details/44942445</link><guid>https://blog.csdn.net/Equoid/article/details/44942445</guid><author>Equoid</author><pubDate>Wed, 08 Apr 2015 16:13:15 +0800</pubDate><description><![CDATA[一个工程中的源文件不计其数，其按类型、功能、模块分别放在若干个目录中，makefile 定义了一系列的规则来指定，哪些文件需要先编译，哪些文件需要后编译，哪些文件需要重新编译，甚至于进行更复杂的功能操作，因为 makefile 就像一个 Shell 脚本一样，其中也可以执行操作系统的命令。


例：（来自《鸟哥的Linux私房菜：基础学习篇（第三版）》
有4个 .c 的源文件，分别是 ma]]></description><category></category></item><item><title><![CDATA[JOBDU Q1004]]></title><link>https://blog.csdn.net/Equoid/article/details/44936479</link><guid>https://blog.csdn.net/Equoid/article/details/44936479</guid><author>Equoid</author><pubDate>Wed, 08 Apr 2015 09:35:05 +0800</pubDate><description><![CDATA[题目：有序数列合并，输出中位数
/*
题目描述：
Given an increasing sequence S of N integers, the median is the number at the middle position. 
For example, the median of S1={11, 12, 13, 14} is 12, and the median of S2={9,]]></description><category></category></item><item><title><![CDATA[JOBDU Q1003]]></title><link>https://blog.csdn.net/Equoid/article/details/44936443</link><guid>https://blog.csdn.net/Equoid/article/details/44936443</guid><author>Equoid</author><pubDate>Wed, 08 Apr 2015 09:34:11 +0800</pubDate><description><![CDATA[题目：A+B
/*
题目描述：
给定两个整数A和B，其表示形式是：从个位开始，每三位数用逗号","隔开。
现在请计算A+B的结果，并以正常形式输出。
输入：
输入包含多组数据数据，每组数据占一行，由两个整数A和B组成（-10^9 < A,B < 10^9）。
输出：
请计算A+B的结果，并以正常形式输出，每组数据占一行。
样例输入：
-234,567,890 123,456,789
1,234 ]]></description><category></category></item><item><title><![CDATA[JOBDU Q1002]]></title><link>https://blog.csdn.net/Equoid/article/details/44936367</link><guid>https://blog.csdn.net/Equoid/article/details/44936367</guid><author>Equoid</author><pubDate>Wed, 08 Apr 2015 09:28:14 +0800</pubDate><description><![CDATA[题目：按规则打分。
/*
题目描述：
Grading hundreds of thousands of Graduate Entrance Exams is a hard work. It is even harder to design a process to make the results as fair as possible. One way is to assign each ex]]></description><category></category></item><item><title><![CDATA[JOBDU Q1001]]></title><link>https://blog.csdn.net/Equoid/article/details/44936137</link><guid>https://blog.csdn.net/Equoid/article/details/44936137</guid><author>Equoid</author><pubDate>Wed, 08 Apr 2015 09:12:52 +0800</pubDate><description><![CDATA[题目：数组求和，输出全为0的行列数。
/*
题目描述：
This time, you are supposed to find A+B where A and B are two matrices, and then count the number of zero rows and columns.
输入：
The input consists of several test cases, e]]></description><category></category></item><item><title><![CDATA[NCDC数据下载shell脚本]]></title><link>https://blog.csdn.net/Equoid/article/details/44921451</link><guid>https://blog.csdn.net/Equoid/article/details/44921451</guid><author>Equoid</author><pubDate>Tue, 07 Apr 2015 15:51:51 +0800</pubDate><description><![CDATA[一、使用shell脚本，从NCDC的ftp服务器上下载所有数据。以年份命名文件夹中存储该年份的数据，包括N个记录文件和一个包含该年份所有数据的压缩包
#!/bin/bash
for i in {1901..2015}
do
cd /root/桌面/ncdc1
mkdir $i
cd ./$i
wget --execute robots=off -r -np -nH --cut-dirs=4 -R]]></description><category></category></item><item><title><![CDATA[gcc命令]]></title><link>https://blog.csdn.net/Equoid/article/details/44921211</link><guid>https://blog.csdn.net/Equoid/article/details/44921211</guid><author>Equoid</author><pubDate>Tue, 07 Apr 2015 15:41:50 +0800</pubDate><description><![CDATA[一般用法：
（1）编译.c文件：

gcc -o example example.c


（2）编译.cpp文件： 

gcc -o example example.cpp -lstdc++或者: 
g++ -o example example.cpp或者: 
c++ -g -o example example.cpp 


详细说明：
在使用GCC编译器的时候，我们必]]></description><category></category></item><item><title><![CDATA[《C++ STL编程轻松入门》]]></title><link>https://blog.csdn.net/Equoid/article/details/44920781</link><guid>https://blog.csdn.net/Equoid/article/details/44920781</guid><author>Equoid</author><pubDate>Tue, 07 Apr 2015 15:17:52 +0800</pubDate><description><![CDATA[点击打开链接]]></description><category></category></item><item><title><![CDATA[Set集合常用操作]]></title><link>https://blog.csdn.net/Equoid/article/details/44920627</link><guid>https://blog.csdn.net/Equoid/article/details/44920627</guid><author>Equoid</author><pubDate>Tue, 07 Apr 2015 15:07:59 +0800</pubDate><description><![CDATA[1) 元素插入：
insert()
2) 中序遍历：
类似vector遍历（用迭代器）
3) 反向遍历：
利用反向迭代器reverse_iterator。
set s;
......
set::reverse_iterator rit;
for(rit=s.rbegin();rit!=s.rend();rit++)




4) 元素删除：
与插入一样，可以高效的删除，并自]]></description><category></category></item><item><title><![CDATA[std::map]]></title><link>https://blog.csdn.net/Equoid/article/details/44920347</link><guid>https://blog.csdn.net/Equoid/article/details/44920347</guid><author>Equoid</author><pubDate>Tue, 07 Apr 2015 14:50:29 +0800</pubDate><description><![CDATA[映射和多重映射基于某一类型Key的键集的存在，提供对T类型的数据进行快速和高效的检索。
对map而言，键只是指存储在容器中的某一成员。
Map不支持副本键，multimap支持副本键。
Map和multimap对象包涵了键和各个键有关的值，键和值的数据类型是不相同的，这与set不同。set中的key和value是Key类型的，而map中的key和value是一个pair结构中的两个分量。]]></description><category></category></item><item><title><![CDATA[Interator 迭代器]]></title><link>https://blog.csdn.net/Equoid/article/details/44920113</link><guid>https://blog.csdn.net/Equoid/article/details/44920113</guid><author>Equoid</author><pubDate>Tue, 07 Apr 2015 14:35:15 +0800</pubDate><description><![CDATA[std::map::iterator iter = ss_map.begin();


迭代器模式由以下角色组成：
1） 迭代器角色（Iterator）：迭代器角色负责定义访问和遍历元素的接口。
2） 具体迭代器角色（Concrete Iterator）：具体迭代器角色要实现迭代器接口，并要记录遍历中的当前位置。
3） 容器角色（Container）：容器角色负责提供创建具体迭代器角色]]></description><category></category></item><item><title><![CDATA[名词：ASG，CSG，PW]]></title><link>https://blog.csdn.net/Equoid/article/details/44919671</link><guid>https://blog.csdn.net/Equoid/article/details/44919671</guid><author>Equoid</author><pubDate>Tue, 07 Apr 2015 14:11:36 +0800</pubDate><description><![CDATA[ASG ：汇聚网关
CSG ：Cell Site Gateway， 基站侧网关。
PW：Pseudo Wire，伪线。]]></description><category></category></item></channel></rss>