码迷,mamicode.com
首页 >  
搜索关键字:shuffle write    ( 15634个结果
Pascal小游戏 随机函数
一个被人写滥了的小程序,新手学习,Pascal By Chaobs初学者可以用它来学习随机函数的运用,当然你完全可以自己写一个随机函数。var player1,player2:longint; a,b,l,o,i,v:longint; w:boolean;begin randomize; write...
分类:其他好文   时间:2014-07-16 19:36:43    阅读次数:139
CTCI 4.7
Design an algorithm and write code to find the first common ancestory of two nodes in a binary tree. Avoid storing additional nodes in data structure....
分类:其他好文   时间:2014-07-13 13:24:21    阅读次数:279
javascript中去掉字符串前面的0
var str = "00012300325300"; str = str.replace(/\b(0+)/gi,""); // 去掉字符串前面的0document.write("str=" + str + "");上面代码中replace的正则表达式就是去掉字符串前面的0
分类:编程语言   时间:2014-07-13 11:48:00    阅读次数:247
javascript中的数据类型
var result = typeof(null);document.write("typeof null =" + result); // objectdocument.write("");上面result的结果是object var sum = "1" + 2 + 3;document.wri....
分类:编程语言   时间:2014-07-13 11:20:05    阅读次数:209
js基础学习笔记(一)
* 在js编写过程中,尽量保持统一使用单引号 'XXXX';* 所有变量都要声明 var,避免全局函数调用的冲突;1.1 输出内容docment.write(‘aileLi’);改变某ID元素样式docment.getElementById(‘ID’).style.color=’样式参数’;1.2 ...
分类:Web程序   时间:2014-07-13 08:26:48    阅读次数:262
js基础学习笔记(二)
2.1 输出内容(document.write)document.write()可用于直接向HTML输出流写内容。简单的说就是直接在网页中输出内容。第一种:输出内容用“”括起,直接输出""号内的内容。第二种:通过变量,输出内容第三种:输出多项内容,内容之间用+号连接。第四种:输出HTML标签,并起作...
分类:Web程序   时间:2014-07-13 08:14:30    阅读次数:302
APUE学习笔记:第三章 文件I/O
3.1 引言术语不带缓冲指的是每个read和write都调用内核中的一个系统调用。这些不带缓冲的I/O函数不是ISO C的组成部分,但是,它们是POSIX.1和Single UNIX Specification的组成部分3.2 文件描述符UNIX系统shell使用文件描述符0与进程的标准输入相关联、...
分类:其他好文   时间:2014-07-13 08:11:13    阅读次数:245
iOS数据存储的几种方式
iOS的数据存储是iOS应用开发的重要知识点:关于这方面知识,网上有很多介绍,但对于代码层次的使用方式并未有系统全面介绍。此文章针对iOS稍熟悉的童鞋,需要对CoreData的原理有一定的了解。目前存储方式大概有以下几种:NSKeyedArchiver  适用简单数据加密NSUserDefaults  适用配置参数Write  文件操作,同 NSKeyedArchiver SQLite3  操作较...
分类:移动开发   时间:2014-07-12 17:38:30    阅读次数:380
Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: "((()))", "(()())", "(())()", "()(())", "()()...
分类:其他好文   时间:2014-07-12 17:37:13    阅读次数:139
android uboot中的mmc命令
一:mmc的命令如下: 1:对mmc读操作 mmc read addr blk# cnt        2:对mmc写操作               mmc write addr blk# cnt   3:对mmc擦除操作 mmc erase blk# cnt   4:重新搜索mmc设备 mmc rescan   5:列出mmc的分区 mmc part - li...
分类:移动开发   时间:2014-07-12 17:36:39    阅读次数:328
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!