文件IO操作相关系统编程这里主要说两套IO操作接口,分别是:POSIX标准read|write接口,函数定义在#include<unistd.h>ISOC标准fread|fwrite接口,函数定义在#include<stdio.h>有书上说POSIX标准与ISOC标准的区别在于文件读写是否带缓冲区,我则不是很认同,因此POSI..
分类:
系统相关 时间:
2014-05-27 03:59:28
阅读次数:
481
oracle冷备份是一致性备份,备份的内容有数据文件,redo文件,temp文件,控制文件等,SQLBLANKLINESON是预防脚本中有空格,sqlplus误认为是结束,报SP2-0734:unknowncommandbeginning"wheret.bg..."-restoflineignored.错误.setfeedbackoffheadingoffverifyofftrimspooloffSQLB..
分类:
数据库 时间:
2014-05-27 03:43:10
阅读次数:
283
Given two binary trees, write a function to
check if they are equal or not.Two binary trees are considered equal if they are
structurally identical an...
分类:
其他好文 时间:
2014-05-22 16:46:03
阅读次数:
173
【题目】
原文:
2.1 Write code to remove duplicates from an unsorted linked list.
FOLLOW UP
How would you solve this problem if a temporary buffer is not allowed?
译文:
从一个未排序的链表中移除重复的项
...
分类:
其他好文 时间:
2014-05-22 12:04:13
阅读次数:
196
int socketpair(int domain, int type, int protocol, int sockfd[2]); //创建未命名的全双工管道
domain只能为AF_UNIX,也就是限制在本地使用
type可以是SOCK_STREAM或SOCK_DGRAM,SOCK_STREAM相当于创建了双向流管道,管道的每一端都可以write或read,并且两端的数据流...
分类:
其他好文 时间:
2014-05-22 08:47:02
阅读次数:
241
1 @Override 2 public boolean onKeyDown(int keyCode,
KeyEvent event) 3 { 4 if(keyCode == KeyEvent.KEYCODE_BACK){ 5 quitApp...
分类:
移动开发 时间:
2014-05-21 23:54:13
阅读次数:
453
1.Q:vector的push_back()方法到底做了些什么? 为什么声明写的是void
push_back (const value_type&
val);A:的确,乍一看,似乎push_back方法添加了一个引用。哦,天啊,如果这个引用对象被析构了,那岂不是要出错。官方文档是这样写的Adds ...
分类:
其他好文 时间:
2014-05-21 20:36:55
阅读次数:
408
体验js的魅力。js写入 htmldocument.write("This is a
heading");document.write("This is a
paragraph");完整代码:JavaScript:对事件作出反应点击这里alert() 函数在 JavaScript 中并不常用,但它对...
分类:
其他好文 时间:
2014-05-21 19:59:25
阅读次数:
213
【题目】
Write a program to solve a Sudoku puzzle by filling the empty cells.
Empty cells are indicated by the character '.'.
You may assume that there will be only one unique solution.
A sudoku puzzle...
...and its solution numbers marked in red.
...
分类:
其他好文 时间:
2014-05-20 17:07:34
阅读次数:
335
Problem Description
As we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a program to calculate A mod B.
To make the problem easie...
分类:
其他好文 时间:
2014-05-20 14:42:07
阅读次数:
324