文件IO操作相关系统编程这里主要说两套IO操作接口,分别是:POSIX标准read|write接口,函数定义在#include<unistd.h>ISOC标准fread|fwrite接口,函数定义在#include<stdio.h>有书上说POSIX标准与ISOC标准的区别在于文件读写是否带缓冲区,我则不是很认同,因此POSI..
分类:
系统相关 时间:
2014-05-27 03:59:28
阅读次数:
481
编写一个shell脚本,实现加法和乘法运算。#!/bin/bash#Function:num1+num2num3*num4sum(){read-p"pleasekeyinfirstnumber:"num1read-p"pleasekeyinsecondnumber:"num2letnum3=${num1}+${num2}echo-e"\033[32m$num1+$num2=$num3\033[0m"}#############cf(){read-p"pleasekeyinfi..
分类:
其他好文 时间:
2014-05-27 03:28:19
阅读次数:
219
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
--查询数据库状态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
节目:2013年英国达人秀表演者:来自匈牙利的Attraction舞团背景音乐:Read
All About It
分类:
其他好文 时间:
2014-05-21 23:05:46
阅读次数:
203
ffmpeg 源代码简单分析 : av_read_frame()
http://blog.csdn.net/leixiaohua1020/article/details/12678577ffmpeg中的av_read_frame()的作用是读取码流中的音频若干帧或者视频一帧。例如,解码视频的时候,....
分类:
其他好文 时间:
2014-05-21 22:21:52
阅读次数:
541
【题目】
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命令分成内置命令和外部命令。
内置命令(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
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
文章转自:http://uliweb.clkg.org/tutorial/read/406cocos2d游戏开发实战6.1创建cocos2d项目6.2cocos2dv3"helloworld"6.2.1显示一个飞船6.3精灵6.4开始spaceviking之旅6.4.1增加sneakyinput6.5精灵的移动效果,旋转效果6.6定时器效果6.7启动cocos2d,默认竖屏6.8检查精灵碰撞参..
分类:
其他好文 时间:
2014-05-20 23:25:05
阅读次数:
363