*博客头图：

RGB颜色，例如：#AFAFAF

Hover：

RGB颜色，例如：#AFAFAF

RGB颜色，例如：#AFAFAF

# 阿甘的专栏

Do one thing, Do it well

• 博客(29)
• 收藏
• 关注

#!/bin/sh# ffffx0@gmail.com# 2008-07-26#wget $1 -q -O downloaded.html cat downloaded.html | tr /" //n | grep tn=baidump3 > list.rawCC=1for VAL in cat list.rawdowget$V

2008-07-27 13:36:00 977

#### 转载 生命是一连串长期而持续的累积

2006-03-13 16:11:00 1335

#### 原创 Chapter 4– Functions and Program Structure of TCPL (Part 11)

Exercise 4-8Suppose that there will never be more than one character of pushback. Modify getch and ungetch accordingly./* K&R Exercise 4-8 *//* written by Steven Huangrevised by ffffx0@gma

2006-02-21 18:38:00 1885

#### 原创 Chapter 4– Functions and Program Structure of TCPL (Part 10)

Chapter 4 – Functions and Program StructureExercise 4-1Write the function strrindex(s,t) , which returns the position of the rightmost occurrence of t in s , or -1 if there is none.#include

2006-02-21 18:28:00 2064

#### 原创 Chapter 3– Control Flow of TCPL (Part 9)

Chapter 3 – Control FlowExercise 3-1Our binary search makes two tests inside the loop, when one would suffice (at the price of more tests outside). Write a version with only one test inside the lo

2006-02-20 23:46:00 2033

#### 原创 Chapter 2 – Types, Operators and Expressions of TCPL

Chapter 2 – Types, Operators and ExpressionsExercise 2-1Write a program to determine the ranges of char, short, int, and long variables, both signed and unsigned, by printing appropriate values fr

2006-02-20 21:53:00 2381

#### 原创 Selected solutions to exercise of "The C Programming Language" 2e (Part 7, End of Chapter 1)

Exercise 1-23Write a program to remove all comments from a C program. Dont forget to handle quoted strings and character constants properly. C comments do not nest. Solution by othershttp://u

2006-02-19 23:21:00 1545

#### 原创 Selected solutions to exercise of "The C Programming Language" 2e (Part 6)

Exercise 1-22Write a program to "fold" long input lines into two or more shorter lines after the last non-blank character that occurs before the n -th column of input. Make sure your program does so

2006-02-19 23:16:00 1621

#### 原创 Selected solutions to exercise of "The C Programming Language" 2e (Part 5)

Exercise 1-20Write a program detab that replaces tabs in the input with the proper number of blanks to space to the next tab stop. Assume a fixed set of tab stops, say every n columns. Should n be a

2006-02-19 18:22:00 1511

#### 原创 Selected solutions to exercise of "The C Programming Language" 2e (Part 4)

Exercise 1-18Write a program to remove all trailing blanks and tabs from each line of input, and to delete entirely blank lines./*  K&R2 1-18 p31: Write a program to remove trailing blanks and t

2006-02-19 17:41:00 1717

#### 原创 Selected solutions to exercise of "The C Programming Language" 2e (Part 3)

Exercise 1-16Revise the main routine of the longest-line program so it will correctly print the length of arbitrarily long input lines, and as much as possible of the text. /* I do not think t

2006-02-19 16:42:00 1210

#### 原创 Selected solutions to exercise of "The C Programming Language" 2e (Part 2)

Exercise 1-13Write a program to print a histogram of the lengths of words in its input. It is easy to draw the histogram with the bars horizontal; a vertical orientation is more challenging.Horizo

2006-02-19 16:38:00 1209

#### 原创 Selected solutions to exercise of "The C Programming Language" 2e (Part 1)

Exercise 1-8Write a program to count blanks, tabs, and newlines.#include  int main(void){    int blanks, tabs, newlines;    int c;    int done = 0;    int lastchar = 0;

2006-02-19 16:35:00 1239

#### 原创 Do the Untwist (1006)

Cryptography deals with methods of secret communication that transform a message (the plaintext) into a disguised form (the ciphertext) so that no one seeing the ciphertext will be able to figure out

2006-02-10 01:35:00 1872

#### 原创 How to Install Cygwin

2006-02-09 20:59:00 1963

#### 原创 To do beautiful printing

Have you watched an English movie? Of course! Have you noticed the caption of end which tells us which role is played by whom? Maybe not. I have seen many English movies and some of them are very famo

2006-02-09 01:05:00 1367

#### 原创 蘭亭序

Lanting Xu (蘭亭序), or Lanting Ji Xu (蘭亭集序) ("Preface to the Poems Composed at the Orchid Pavilion"), is the most famous work of calligraphy by Wang Xizhi, composed in year 353. Written in xingshu, or r

2006-02-08 16:37:00 3231

#### 原创 On Code Comment

Brian W. Kernighan and Rob Pike have some excellent suggestions for writing comments. They are said best as they appear in "The Practice of Programming," [1]: Dont belabor the obvious. Commen

2006-02-07 14:09:00 954

#### 原创 文件压缩

2006-02-06 22:00:00 1863

#### 原创 Problem Preparation for HTML to TXT

Problem Preparation for HTML to TXT If you have worked on website design, you must be familiar with HTML. When writing a HTML file, we always use to include some control commands which can contro

2006-02-06 19:16:00 1652

#### 原创 JDBC-ODBC相关的一些常见问题和解决方法zz

2006-02-05 02:19:00 4679

#### 原创 用Java and JDBC-ODBC读写Excel文件

2006-02-05 02:03:00 8720

2006-02-03 23:38:00 2245

#### 原创 批量下载网页中相同格式的文件

2006-02-02 01:00:00 1757

#### 原创 往MySQL中存储图片

2006-02-02 00:47:00 117330 8

#### 原创 用VC编写的SN快速输入工具

2006-02-01 20:46:00 2701

#### 原创 Using Java to Develop a Very Simple SMTP Client

Using Java to Develop a Very Simple SMTP ClientYanjiang QianJanuary 30, 20061 Introduction In this short article, let’s enjoy the digging of the Simple Mail Transfer Protocol (SMTP) and

2006-02-01 02:18:00 3847

#### 原创 History of SMTP

The following excerpt is from the Free Software Magazine, March 2005 Issue, written by Kirk Strauser. To read the entire article, you may download the magazine here [PDF]. SMTP is an abbreviation fo

2006-01-28 00:41:00 1242

#### 原创 一个俄罗斯方块游戏源程序

2003-08-01 18:59:00 2523

###### 空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人