码迷,mamicode.com
首页 >  
搜索关键字:read while循环    ( 22836个结果
cas
CAS,当oldVal与expected相同时,将oldVal更新为newVal,原子操作ABA problem:when a location is read twice, has the same value for both reads, and "value is same“ is used...
分类:其他好文   时间:2014-05-26 16:06:53    阅读次数:217
Linux 设备驱动程序 proc
不能再简化了#include#include#includeint meng_read_proc(char*page,char**start,off_t offset,int count,int*eof,void*data){ char*s="Hello. This is meng p...
分类:系统相关   时间:2014-05-26 15:52:49    阅读次数:463
php 遍历文件及文件夹
\n"; while($file = $mydir->read()) { if((is_dir("$directory/$file")) AND ($file!=".") AND ($file!="..")) { echo "$fi...
分类:Web程序   时间:2014-05-26 14:22:05    阅读次数:239
HITAG 2 125kHz RFID IC Read-Write 256 bits
Features 256 bits EEPROM memory organized in 8 pages of 32 bits each 32 bits unique factory programmed serial number Typical operating frequency : ...
分类:其他好文   时间:2014-05-26 13:32:43    阅读次数:287
TI C66x DSP硬件信号量 - 3(Direct Semaphore)
Direct request is the simplest method used to request a semaphore. The request behaves as an atomic read and set operation. The result of a request is either to grant the semaphore to the requesting...
分类:其他好文   时间:2014-05-22 17:21:38    阅读次数:517
SQL Server开启READ_COMMITTED_SNAPSHOT
--查询数据库状态select name,user_access,user_access_desc, snapshot_isolation_state,snapshot_isolation_state_desc, is_read_committed_snapshot_onfrom sys.dat.....
分类:数据库   时间:2014-05-22 16:48:03    阅读次数:340
sql基础复习
--1、while循环declare @sum intdeclare @i intset @i=1set @sum=0while(@i90) print @iendprint @sum--2、goto语句declare @num intset @num=100flag:print @numsel.....
分类:数据库   时间:2014-05-21 22:20:40    阅读次数:468
LeetCode: Count and Say [037]
【题目】 The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11. 11 is read off as "two 1s" or 21. 21 is read off as "one 2, then one 1" or 1211. Given an integer n, generate...
分类:其他好文   时间:2014-05-21 15:20:07    阅读次数:213
shell的内部命令和外部命令
shell命令分成内置命令和外部命令。 内置命令(builtin command) 是shell解释程序内建的,有shell直接执行,不需要派生新的进程。有一些内部命令可以用来改变当前的shell环境。 常见的内部命令有:.(点命令)、bg、cd、continue、echo、exec、exit、export、fg、jobs、pwd、read、return、set、shift、t...
分类:其他好文   时间:2014-05-21 13:33:24    阅读次数:213
poj 1159 Palindrome
Palindrome Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 50914   Accepted: 17537 Description A palindrome is a symmetrical string, that is, a string read...
分类:其他好文   时间:2014-05-21 06:50:05    阅读次数:281
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!