一、#wc:printthenumberofnewlines,words,andbytesinfileswc[option][file]-l:统计行-c:统计字节数-w:统计单词数如:a、统计当前系统有多少用户:wc-l/etc/passwdb、统计/bin下的文件数:ls-l/bin|wc-lc、统计/etc目录下以P或者p开头的文件个数:ls-d/etc/[Pp]*|wc-l二、#tr..
分类:
其他好文 时间:
2014-08-29 11:12:08
阅读次数:
211
题目链接题意 : 对输入的点极角排序思路 : 极角排序方法#include #include #include #include using namespace std;struct point{ double x,y;}p[50],pp;double cross(point a,point ...
分类:
其他好文 时间:
2014-08-28 14:45:59
阅读次数:
175
项目中遇到一个bug,因为接入了几家越狱平台:91、同步推、PP助手,在设备上安装了三个应用,启用其中任意一个,另外二个启动后无法创建发送socket消息,从而导致游戏直接死在登录那里,再次点击登录时线程才会被唤醒(无法发送的原因定位到,是因为在调用sem_post方法后无法将线程唤醒)。之后我尝试...
分类:
编程语言 时间:
2014-08-27 00:09:56
阅读次数:
402
STM32的输入输出管脚有下面8种可能的配置:(4输入、2输出、2复用输出) 1、浮空输入_IN_FLOATING 2、带上拉输入_IPU 3、带下拉输入_IPD 4、模拟输入_AIN 5、开漏输出_OUT_OD 6、推挽输出_OUT_PP 7、复用功能...
分类:
其他好文 时间:
2014-08-26 19:25:36
阅读次数:
260
利用puppet管理solrcloud主脚本1./etc/puppet/manifests/zookeeper.pp/*vimset:expandtab:shiftwidth=4:tabstop=4:smarttab:*/#=globalvar#=sae#=cron#=user#=account#=stdlib#=zookeeper#=solr#=jettynode/sae$/{includeglobalvarincludeglobalvar::userincludeaccount::lists..
分类:
其他好文 时间:
2014-08-22 18:08:09
阅读次数:
327
#include
using namespace std;
class B {
public:
void foo() { cout << "B foo " << endl; }
void pp() { cout << "B pp" << endl; }
void FunctionB() { cout << "funB" << endl; }
};
int main(...
分类:
其他好文 时间:
2014-08-14 14:17:38
阅读次数:
266
-01-02-03-04-05-06-07-08-09-10-11-12-13-14-15-16
分类:
其他好文 时间:
2014-08-11 14:52:12
阅读次数:
159
# include
# include
# include
using namespace std;
int n,cot;
int map[660],vis[660],pp[660][660],u[660][660];
int bfs(int x)
{
for(int i=1;i<=cot;i++)
{
if(!vis[i]&&pp[x][i])
{
vis[i]=1;
...
分类:
其他好文 时间:
2014-08-07 15:54:20
阅读次数:
246
//是象棋里的车 符合二分匹配
# include
# include
# include
using namespace std;
int n,m,pp[110][110],map[110],vis[110];
int bfs(int x)
{
for(int i=1;i<=m;i++)
{
if(!vis[i]&&pp[x][i])
{
vis[i]=1;
if(!ma...
分类:
其他好文 时间:
2014-08-07 15:48:40
阅读次数:
183
//A组n人 B组m人
//最多有多少人匹配 每人只有匹配一次
# include
# include
# include
using namespace std;
int n,m,k;
int pp[1100][1100],map[1100],vis[1100];
int bfs(int x)//二分匹配模板
{
for(int i=1;i<=m;i++)//B组中的人来迎合匹配
{
...
分类:
其他好文 时间:
2014-08-07 13:25:10
阅读次数:
151