<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[bitwater的空间]]></title><description><![CDATA[写点代码记录生活....]]></description><link>https://blog.csdn.net/betwater</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; betwater]]></copyright><item><title><![CDATA[并查集模板]]></title><link>https://blog.csdn.net/betwater/article/details/65442955</link><guid>https://blog.csdn.net/betwater/article/details/65442955</guid><author>betwater</author><pubDate>Thu, 23 Mar 2017 13:59:54 +0800</pubDate><description><![CDATA[//并查集算法  
void init(int vn){  
    for(int i = 0;i <= vn;++i)  
        Father[i] = i;  
}  
int find(int x){  
    return (Father[x] == x) ? x :  
         Father[x] = find(Father[x]);  
}  
inline v]]></description><category></category></item><item><title><![CDATA[莫队算法模板]]></title><link>https://blog.csdn.net/betwater/article/details/61423138</link><guid>https://blog.csdn.net/betwater/article/details/61423138</guid><author>betwater</author><pubDate>Sat, 11 Mar 2017 18:37:39 +0800</pubDate><description><![CDATA[#include 
#include 
using namespace std;

int const SIZE = 30100;
int const BLOCK_SIZE = 200;//分块大小为接近根号n的整数，这样容易调试

struct _t{
    int s,e;
    int idx;
};

bool operator  < (_t const&lhs,_t const&rh]]></description><category></category></item><item><title><![CDATA[数论求逆元的三种方法]]></title><link>https://blog.csdn.net/betwater/article/details/61422632</link><guid>https://blog.csdn.net/betwater/article/details/61422632</guid><author>betwater</author><pubDate>Sat, 11 Mar 2017 18:29:04 +0800</pubDate><description><![CDATA[扩展欧几里德算法




//非递归的扩展欧几里德算法  
//返回a、b的gcd，同时x、y满足ax+by=gcd  
int_t exEuclid(int_t a,int_t b,int_t&x,int_t&y){  
    int_t x0 = 1, y0 = 0;  
    int_t x1 = 0, y1 = 1;  
    x = 0; y = 1;  
    int]]></description><category></category></item><item><title><![CDATA[高斯消元 浮点数模板]]></title><link>https://blog.csdn.net/betwater/article/details/60135240</link><guid>https://blog.csdn.net/betwater/article/details/60135240</guid><author>betwater</author><pubDate>Fri, 03 Mar 2017 11:07:21 +0800</pubDate><description><![CDATA[//接口：Gauss();解存在x数组中。equ，var分别表示方程个数和变量的个数，（因为是变量 的个数不算常数的个数）要赋值。a就是行列式，其中常数是在方程右侧的符号。  
int const maxn = 2000;  
const double eps=1e-10;  
double a[maxn][maxn],x[maxn];  
int equ,var;  
int Gauss()  ]]></description><category></category></item><item><title><![CDATA[高斯消元模板]]></title><link>https://blog.csdn.net/betwater/article/details/60126808</link><guid>https://blog.csdn.net/betwater/article/details/60126808</guid><author>betwater</author><pubDate>Fri, 03 Mar 2017 09:48:41 +0800</pubDate><description><![CDATA[//基本版
#include
#include
#include
#include
#include
using namespace std;

const int SIZE = 50;

int a[SIZE][SIZE];//增广矩阵
int x[SIZE];//解集
bool free_x[SIZE];//标记是否是不确定的变元

/*
void Debug(int equ,int var)]]></description><category></category></item><item><title><![CDATA[sublime text 3 c++ 运行时解决cin输入问题( ubuntu)]]></title><link>https://blog.csdn.net/betwater/article/details/58018295</link><guid>https://blog.csdn.net/betwater/article/details/58018295</guid><author>betwater</author><pubDate>Mon, 27 Feb 2017 11:06:11 +0800</pubDate><description><![CDATA[网上看了太多了版本,没一个是正确的,我的意思是没一个实在ubuntu下的版本
cmd的命令windows mac linux 都是不一样的所以我参考mac下的版本写个一个ubuntu的
tools->build system->New build system：清空原来的内容，输入下面：

{
"cmd" : ["gnome-terminal -x bash -c \"g++ $file]]></description><category></category></item><item><title><![CDATA[linux 删除软件]]></title><link>https://blog.csdn.net/betwater/article/details/54728978</link><guid>https://blog.csdn.net/betwater/article/details/54728978</guid><author>betwater</author><pubDate>Wed, 25 Jan 2017 11:43:56 +0800</pubDate><description><![CDATA[apt-get 卸载的几个常用命令


apt-get purge / apt-get –purge remove 
#删除已安装包（不保留配置文件)。 
#如软件包a，依赖软件包b，则执行该命令会删除a，而且不保留配置文件

apt-get autoremove 
#删除为了满足依赖而安装的，但现在不再需要的软件包（包括已安装包），保留配置文件。

apt-get remove 
#删除已]]></description><category></category></item><item><title><![CDATA[linux 文件属性与权限（简单讲解）]]></title><link>https://blog.csdn.net/betwater/article/details/54669122</link><guid>https://blog.csdn.net/betwater/article/details/54669122</guid><author>betwater</author><pubDate>Mon, 23 Jan 2017 10:21:57 +0800</pubDate><description><![CDATA[在目录下输入 ls -l   （简写为ll），即可看到当前目录下文件下文件的属性


 第一个箭头表示是文件性质 如果是文件夹则为d ， 否则为-
 后面9个属性可以分为三组  每组都由 rwx 构成




（1）]]></description><category></category></item><item><title><![CDATA[linux deb包的安装]]></title><link>https://blog.csdn.net/betwater/article/details/54560585</link><guid>https://blog.csdn.net/betwater/article/details/54560585</guid><author>betwater</author><pubDate>Sun, 15 Jan 2017 11:52:52 +0800</pubDate><description><![CDATA[deb是debian linus的安装格式，跟red hat的rpm非常相似，最基本的安装命令是：dpkg -i file.deb 


dpkg 是Debian Package的简写，是为Debian 专门开发的套件管理系统，方便软件的安装、更新及移除。所有源自Debian的Linux发行版都使用dpkg，例如Ubuntu、Knoppix
 等。
以下是一些 Dpkg 的普通用法：
]]></description><category></category></item><item><title><![CDATA[Linux 常用的软件]]></title><link>https://blog.csdn.net/betwater/article/details/54558062</link><guid>https://blog.csdn.net/betwater/article/details/54558062</guid><author>betwater</author><pubDate>Sun, 15 Jan 2017 11:41:20 +0800</pubDate><description><![CDATA[出处
https://www.sysgeek.cn/linux-photo-management-software/

http://www.oschina.net/news/13947/five-lightweight-music-players/







Linux 下五款轻量级音乐播放器（开源）





  
本文介绍 Linux 系统下 5 款轻]]></description><category></category></item><item><title><![CDATA[python3 操作MySQL]]></title><link>https://blog.csdn.net/betwater/article/details/54407793</link><guid>https://blog.csdn.net/betwater/article/details/54407793</guid><author>betwater</author><pubDate>Fri, 13 Jan 2017 13:39:07 +0800</pubDate><description><![CDATA[#-*-coding:utf8-*-
'''
Created on 2017年1月8日

@author: bitwater
'''
import pymysql

class Mysql( ):
    def __init__(self,dbname):
        self._dbname = dbname
    def connect(self , dbname ):]]></description><category></category></item><item><title><![CDATA[Python 基本库函数]]></title><link>https://blog.csdn.net/betwater/article/details/53913458</link><guid>https://blog.csdn.net/betwater/article/details/53913458</guid><author>betwater</author><pubDate>Wed, 28 Dec 2016 20:34:16 +0800</pubDate><description><![CDATA[# python 库函数
# 1. format 
	# 它通过  {} 和 : 来代替 %
	# @1 通过位置
		 # '{0},{1}'.format('kzc',18) 
		 # '{1},{0}'.format('kzc',18) 
	# @2 通过关键字参数
		 # '{name},{age}'.format(age=18,name='kzc') 
	# @3 通过对象属性
		]]></description><category></category></item><item><title><![CDATA[linux python3 安装lxml失败]]></title><link>https://blog.csdn.net/betwater/article/details/53817436</link><guid>https://blog.csdn.net/betwater/article/details/53817436</guid><author>betwater</author><pubDate>Thu, 22 Dec 2016 17:31:09 +0800</pubDate><description><![CDATA[pip3 install lxml

一系列报错
........................
 *********************************************************************************
  Could not find function xmlCheckVersion in library libxml2.]]></description><category></category></item><item><title><![CDATA[linux c .c文件编译 基本语法]]></title><link>https://blog.csdn.net/betwater/article/details/53812203</link><guid>https://blog.csdn.net/betwater/article/details/53812203</guid><author>betwater</author><pubDate>Thu, 22 Dec 2016 11:32:24 +0800</pubDate><description><![CDATA[1. .c文件编译过程
	c->i->s->o->out中间的四个过程分别为
	预处理，汇编，编译，链接

		//一步到位的编译命令
	gcc test.c -o test.out
	
(1) 预处理  
		//预处理的作用是展开头文件，以及对宏进行替换
		//在生成的以i为后缀名的文件中进行二维展开
    gcc -E test.c -o test.i  (只生成.i文件 )
    g]]></description><category></category></item><item><title><![CDATA[SQL server char ,nchar  模糊匹配的严重问题]]></title><link>https://blog.csdn.net/betwater/article/details/53783006</link><guid>https://blog.csdn.net/betwater/article/details/53783006</guid><author>betwater</author><pubDate>Wed, 21 Dec 2016 12:25:50 +0800</pubDate><description><![CDATA[nchar ( n ) ,  char ( n ) 
关于上面两个类型大家都不陌生, 
固定长度的字符串类型, 只不过第一个是unicode
要存两个字节,而char只要一个字节, 所以在一开始学
sql的时候,都是用nchar,但是这两个类型还有一个问题


如果不足n个长度 , 会自动在末尾补空格,这句话
经常被忽略, 但其实这句话反映了一个问题,存进去的
字符串其实根本就不]]></description><category></category></item><item><title><![CDATA[python sdk 发一个新浪微博]]></title><link>https://blog.csdn.net/betwater/article/details/53748115</link><guid>https://blog.csdn.net/betwater/article/details/53748115</guid><author>betwater</author><pubDate>Mon, 19 Dec 2016 20:26:39 +0800</pubDate><description><![CDATA[当时也是看了这个代码才学会了sdk怎么用,虽然写的简单,但是学会了套路,留一发,以后当模板
# -*- coding: utf-8 -*-
import weibo

def run(APP_KEY , APP_SECRET , CALL_BACK):
        # weibo模块的APIClient是进行授权、API操作的类，先定义一个该类对象，传入参数为APP_KEY, APP_SEC]]></description><category></category></item><item><title><![CDATA[python sdk 获取新浪微博签到信息]]></title><link>https://blog.csdn.net/betwater/article/details/53747754</link><guid>https://blog.csdn.net/betwater/article/details/53747754</guid><author>betwater</author><pubDate>Mon, 19 Dec 2016 20:22:59 +0800</pubDate><description><![CDATA[具体参考http://www.liaoxuefeng.com/article/00137389308005720bf24cb6cf14d9e897e7026dbc6a842000
不得不说廖大神这个sdk 在我这个新手看来写的真是太完美了,接口调用写成动态,封装授权,返回jsondict 
处理起来实在是方便
# -*- coding: utf-8 -*-

'''
Created on 2]]></description><category></category></item><item><title><![CDATA[记录一些 用过的 cmd 命令]]></title><link>https://blog.csdn.net/betwater/article/details/53639338</link><guid>https://blog.csdn.net/betwater/article/details/53639338</guid><author>betwater</author><pubDate>Wed, 14 Dec 2016 14:39:40 +0800</pubDate><description><![CDATA[//刷新dns
system("ipconfig /flushdns");

//刷新网络 ( 可能要重启 )
system("netsh winsock reset");


WinExec("SystemPropertiesPerformance.exe",SW_SHOW );

//设置ip 掩码 网关
system ( "netsh interface ip set address \"本]]></description><category></category></item><item><title><![CDATA[MFC string CString char wchar 相互转换]]></title><link>https://blog.csdn.net/betwater/article/details/53639107</link><guid>https://blog.csdn.net/betwater/article/details/53639107</guid><author>betwater</author><pubDate>Wed, 14 Dec 2016 14:33:38 +0800</pubDate><description><![CDATA[实在太多也太难整理,只能遇到一次补一个,网上很多都是错的,先把遇到的写出来,慢慢更新......


// wcharTochar 
void wcharTochar(const wchar_t *wchar, char *chr, int length)
{
	WideCharToMultiByte(CP_ACP, 0, wchar, -1,
		chr, length, NULL, NU]]></description><category></category></item><item><title><![CDATA[MFC 是创建的程序打开时默认获得管理员权限]]></title><link>https://blog.csdn.net/betwater/article/details/53639057</link><guid>https://blog.csdn.net/betwater/article/details/53639057</guid><author>betwater</author><pubDate>Wed, 14 Dec 2016 14:28:14 +0800</pubDate><description><![CDATA[WIN7下应用程序可以以普通用户身份运行，或者需要用管理员身份运行。用VS2010制作的软件，默认是以普通用户的身份启动的。
在VS2010中，可以设置程序在启动时，是以何种身份启动。进入：
Project->Property…->Configuration Properties->Linker->Manifest File->UAC Execution Level
默认的级别为“asInv]]></description><category></category></item></channel></rss>