码迷,mamicode.com
首页 >  
搜索关键字:codes    ( 556个结果)
打印对象和toString方法
JAVA对象java对象是都是Object类的实例,都可直接调用该类中定义的方法,这些方法提供了处理java对象的通用方法。> > 6.2.1打印对象和toString方法 先看下面程序: 程序清单:codes/06/6-2/PrintObjectjavapublic class PrintObj....
分类:其他好文   时间:2015-07-31 12:08:10    阅读次数:92
uva 146 ID Codes(求下一个排列)水水水
分别利用STL中的next_permutation和它的实现原理来写: next_permutation: #include #include #include #include using namespace std; int main() { char a[55]; char b[55]; while(scanf("%s",a),a[0]!='#') { strcpy(b,a...
分类:其他好文   时间:2015-07-27 13:11:55    阅读次数:101
Python - 多次检查后缀名(endwith)
在通过后缀名查找类型文件的时候, 多次使用endwith, 使用元组(tuple), 简化操作. 此类方式, 也可以应用于if语句多次相似检测.代码# 列出文件夹内所有代码 def list_dictionary_codes(root_dir): paths_list = [] for parent, dirNames, fileNames in os.walk(root_dir)...
分类:编程语言   时间:2015-07-26 09:50:06    阅读次数:181
04-树6. Huffman Codes (30)
04-树6. Huffman Codes (30) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 CHEN, Yue In 1953, David A. Huffman published his pape...
分类:其他好文   时间:2015-07-25 09:27:06    阅读次数:283
[LeetCode] Search in Rotated Sorted Array II
For those who have already solvedSearch in Rotated Sorted Array, this problem can be solved similarly using codes for that problem and simply adding c...
分类:其他好文   时间:2015-07-19 14:50:19    阅读次数:82
phper談談最近重構代碼的感受(1)
作爲一個工作時間並不算長的phper,卻參與了兩家公司的代碼重構.下面談談我的一些感受.在mjm公司,當時我負責日常的需求開發和2.0的重構.當初的重構更多的是clean codes和一些代碼規範上的.用了phpcs去規範代碼,封裝了一些重複的代碼.並使用了單元測試,對重構的部分run了一遍.從做事...
分类:Web程序   时间:2015-07-18 18:26:49    阅读次数:141
uva 644 - Immediate Decodability
#include#include#include#include#includeusing namespace std;char codes[9][12];int k = 1,num;bool solve(){ for(int i = 0; i strlen(codes[i])){ ...
分类:其他好文   时间:2015-07-16 21:37:01    阅读次数:168
让Android支持透明状态栏
可以在代码中动态设置:private void initSystemBar() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { setTranslucentStatus(true); Syst...
分类:移动开发   时间:2015-07-14 17:40:49    阅读次数:187
HTTP status codes
响应码由三位十进制数字组成,它们出现在由HTTP服务器发送的响应的第一行。响应码分五种类型,由它们的第一位数字表示:1.1xx:信息,请求收到,继续处理2.2xx:成功,行为被成功地接受、理解和采纳3.3xx:重定向,为了完成请求,必须进一步执行的动作4.4xx:客户端错误,请求包含语法错误或者请求...
分类:Web程序   时间:2015-07-13 11:39:00    阅读次数:101
Python的dict数据结构
1.PyDictEntry数据结构1 typedef struct {2 /* Cached hash code of me_key. Note that hash codes are C longs.3 * We have to use Py_ssize_t instead b...
分类:编程语言   时间:2015-07-08 22:09:10    阅读次数:120
共556条   上一页 1 ... 39 40 41 42 43 ... 56 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!