文件IO操作相关系统编程这里主要说两套IO操作接口,分别是:POSIX标准read|write接口,函数定义在#include<unistd.h>ISOC标准fread|fwrite接口,函数定义在#include<stdio.h>有书上说POSIX标准与ISOC标准的区别在于文件读写是否带缓冲区,我则不是很认同,因此POSI..
                            
                            
                                分类:
系统相关   时间:
2014-05-27 03:59:28   
                                阅读次数:
481
                             
                    
                        
                            
                            
                                之前遇到棘手的BUG总是在处理过后就不管了,导致后面碰到后重复工作太多。现专门开辟一篇日志以记录接下来一路上的DEBUG记录。【C++】1.mt.exe : 
general error c101008d: Failed to write the updated manifest to the res...
                            
                            
                                分类:
其他好文   时间:
2014-05-26 22:30:47   
                                阅读次数:
285
                             
                    
                        
                            
                            
                                Jimmy writes down the decimal representations of all natural numbers between and including m and n, (m ≤ n). How many zeroes will he write down?
Input
Input starts with an integer T (≤ 11000), denot...
                            
                            
                                分类:
其他好文   时间:
2014-05-22 22:59:18   
                                阅读次数:
354
                             
                    
                        
                            
                            
                                1.indexOf()方法,从前往后查找字符串位置,大小写敏感,从0开始计数。同理,lastIndexOf() 方法从后往前,两个方法对于相同的检索条件输出的结果是一样的
例如:
var str="Hello World!"
document.write(str.indexOf("Hello"))//输出0
document.write(str.indexOf("World"))/...
                            
                            
                                分类:
Web程序   时间:
2014-05-22 22:54:50   
                                阅读次数:
313
                             
                    
                        
                            
                            
                                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
                             
                    
                        
                            
                            
                                体验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