首页 > 其他
模拟实现atoi函数
atoi函数就是把一串字符串转换为int型整数的函数,通过将字符串中的字符一个一个强制类型转换,并且存入一个临时数组中,再将数组中的数字处理一下即可得到我们需要的整数。实现这个函数的过程中,我们需要注意负数的处理,要进行一次判断,确定返回值的正负。其他的字符按照AS..
分类:其他   时间:2016-01-24 19:47:45    收藏:0  评论:0  赞:0  阅读:136
sudo命令使用
一、su和sudo命令1.su:SwitchUser,用户切换命令su-luser-c‘COMMAND‘su-lroot-c‘COMMAND‘su-lroot2.sudo授权用户以另外一个用户的身份运行指定命令;默认记录成功认证结果5分钟;以sudo的方式来运行指定的命令;sudo[-uuser][options]COMMAND-uuser:默认为root;-h:获取帮助信..
分类:其他   时间:2016-01-24 19:47:24    收藏:0  评论:0  赞:0  阅读:529
rsyslog简单介绍
rsyslog介绍rsyslog可以理解为增强版的syslog,在syslog的基础上扩展了很多其他功能,如数据库支持(Mysql,PostgreSQL、Oracle等)、日志内容筛癣定义日志格式模板等。除了默认的udp协议外,rsyslog还支持tcp协议来接收日志,可以yum安装,也可以源码安装rsyslog优点防止系统崩溃..
分类:其他   时间:2016-01-24 19:47:04    收藏:0  评论:0  赞:0  阅读:277
IO 磁盘总结
IO 磁盘1.读取首先引用一个using System.IO;引用空间其次 string ste= File.ReadAllText("E:\\bt.txt",Encoding.Default); //读取Console.WriteLine(ste);2.写入File.WriteAllText(.....
分类:其他   时间:2016-01-24 19:45:04    收藏:0  评论:0  赞:0  阅读:243
Educational Codeforces Round 6 B. Grandfather Dovlet’s calculator 暴力
B. Grandfather Dovlet’s calculatorOnce Max found an electronic calculator from his grandfather Dovlet's chest. He noticed that the numbers were writte...
分类:其他   时间:2016-01-24 19:44:44    收藏:0  评论:0  赞:0  阅读:365
bat批处理程序启动ES集群
在电脑上装了3个ES节点,以前只会傻乎乎的进入每个文件夹下面用bin/elasticsearch.bat来启动ES节点,完了还有kibana.bat于是写了简单几行bat程序这个麻烦就被轻松甩掉了~start F:\elasticsearch\node1\bin\elasticsearch.bats...
分类:其他   时间:2016-01-24 19:44:14    收藏:0  评论:0  赞:0  阅读:181
usaco-Section 2.3-Controlling Companies
Controlling CompaniesSome companies are partial owners of other companies because they have acquired part of their total shares of stock. For example,...
分类:其他   时间:2016-01-24 19:44:04    收藏:0  评论:0  赞:0  阅读:122
WP8.1开发中关于媒体(图片)文件的生成操作,属性如何设置(内容/嵌入资源等);
本文转载别处
分类:其他   时间:2016-01-24 19:43:04    收藏:0  评论:0  赞:0  阅读:619
POJ1287(最小生成树入门题)
NetworkingTime Limit:1000MSMemory Limit:10000KTotal Submissions:7753Accepted:4247DescriptionYou are assigned to design network connections between cer...
分类:其他   时间:2016-01-24 19:42:54    收藏:0  评论:0  赞:0  阅读:164
usaco-Section 3.1-Contact
ContactIOI'98The cows have developed a new interest in scanning the universe outside their farm with radiotelescopes. Recently, they noticed a very cu...
分类:其他   时间:2016-01-24 19:42:24    收藏:0  评论:0  赞:0  阅读:236
if 嵌套题
分类:其他   时间:2016-01-24 19:42:14    收藏:0  评论:0  赞:0  阅读:166
usaco-Section 3.1-Stamps
StampsGiven a set of N stamp values (e.g., {1 cent, 3 cents}) and an upper limit K to the number of stamps that can fit on an envelope, calculate the ...
分类:其他   时间:2016-01-24 19:42:04    收藏:0  评论:0  赞:0  阅读:135
BestCoder Round 69 Div 2 1001 && HDU 5610
题目:http://acm.hdu.edu.cn/showproblem.php?pid=5610如果杠铃总质量是奇数直接impossible接着就考验耐心和仔细周全的考虑了。在WA了三次后终于发现问题了,想对自己说是不是撒首先最好从大的那个开始考虑,我的方案就是两数交换一下,结果输出的时候没有考虑...
分类:其他   时间:2016-01-24 19:41:43    收藏:0  评论:0  赞:0  阅读:382
HDU3572_Task Schedule(网络流最大流)
解题报告题意:工厂有m台机器,须要做n个任务。对于一个任务i。你须要花费一个机器Pi天,并且,開始做这个任务的时间要>=Si,完毕这个任务的时间#include #include #include #include #include #define inf 99999999using namespa...
分类:其他   时间:2016-01-24 19:41:14    收藏:0  评论:0  赞:0  阅读:149
程序猿生存定律--成长路上常见的坑(2)
程序猿生存定律这系列的文件夹在这里:程序猿生存定律--文件夹喜欢从头瞄的,能够移步。-------------------------------------------------------------------------------1.“博”与“专”上的迷失假设说一个人的学习已经聚焦,而且...
分类:其他   时间:2016-01-24 19:39:44    收藏:0  评论:0  赞:0  阅读:150
第一个文章
标题1#!/usr/bin/env python# -*- coding: utf8 -*-print "hello,world." 标题2
分类:其他   时间:2016-01-24 19:38:44    收藏:0  评论:0  赞:0  阅读:160
Activity启动(2)----setView之后(View的绘制过程)
上一篇文章最后结束在RootViewImpl.setView()函数,这个函数之后发生了什么事情,我们接着分析。1. RootViewImpl简介ViewRootImpl作为视图层次中的顶层,实现了View和WindowManager之间需要的协议,与SystemServer进程的WindowMan...
分类:其他   时间:2016-01-24 19:38:24    收藏:0  评论:0  赞:0  阅读:423
usaco-Section 2.4-Bessie Come Home
Bessie Come HomeKolstad & BurchIt's dinner time, and the cows are out in their separate pastures. Farmer John rings the bell so they will start walkin...
分类:其他   时间:2016-01-24 19:38:04    收藏:0  评论:0  赞:0  阅读:205
usaco-Section 2.4-Cow Tours
Cow ToursFarmer John has a number of pastures on his farm. Cow paths connect some pastures with certain other pastures, forming a field. But, at the p...
分类:其他   时间:2016-01-24 19:37:54    收藏:0  评论:0  赞:0  阅读:178
.pro配置选项
在QtCreator的项目中添加头文件和库在Qt Creator中的工程中,工程通过.pro文件管理。额外需要连接的连接库unix:LIBS += -L your_lib_path -lyour_libwin32:LIBS += your_lib_path/your_lib额外需要的头文件目录INC...
分类:其他   时间:2016-01-24 19:37:44    收藏:0  评论:0  赞:0  阅读:162
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!