自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

阿甘的专栏

Do one thing, Do it well

原创 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 *//* w...

2006-02-21 18:38:00 1793 0

原创 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 ...

2006-02-21 18:28:00 1984 0

原创 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). W...

2006-02-20 23:46:00 1884 0

原创 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 ...

2006-02-20 21:53:00 2311 0

原创 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 commen...

2006-02-19 23:21:00 1495 0

原创 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 befor...

2006-02-19 23:16:00 1585 0

原创 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...

2006-02-19 18:22:00 1483 0

原创 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...

2006-02-19 17:41:00 1686 0

原创 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 a...

2006-02-19 16:42:00 1164 0

原创 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 ...

2006-02-19 16:38:00 1182 0

原创 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;  ...

2006-02-19 16:35:00 1197 0

原创 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 on...

2006-02-10 01:35:00 1834 0

原创 How to Install Cygwin

如何下載安裝Cygwin及“ARM微處理器原理與實作”一書中所需的執行程式步驟1. 從網路下載安裝程式setup.exe至Cygwin的網站http://www.cygwin.com/下載安裝程式setup.exe,可直接點選執行或先行下載至個人電腦後再執行。圖1. 安裝程式setup.exe在C...

2006-02-09 20:59:00 1910 0

原创 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...

2006-02-09 01:05:00 1334 0

原创 蘭亭序

Lanting Xu (蘭亭序), or Lanting Ji Xu (蘭亭集序) ("Preface to the Poems Composed at the Orchid Pavilion"), is the most famous work of calligraphy ...

2006-02-08 16:37:00 3162 0

原创 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 Prog...

2006-02-07 14:09:00 897 0

原创 文件压缩

文件压缩  提高文件的压缩率一直是人们追求的目标。近几年有人提出了这样一种算法,它虽然只是单纯地对文件进行重排,本身并不压缩文件,但是经这种算法调整后的文件在大多数情况下都能获得比原来更大的压缩率。  该算法具体如下:对一个长度为n的字符串S,首先根据它构造n个字符串,其中第i个字符串由将S的前i...

2006-02-06 22:00:00 1751 0

原创 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...

2006-02-06 19:16:00 1620 0

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

这篇文章列出了与JDBC-ODBC相关的一些常见问题和解决方法。其实说与JDBC-ODBC相关不太合适,因为它实际上是针对DataMorph来说的(DataMorph?我也不清楚。)。不过在上篇“java读写Excel文件”中遇到的问题([Microsoft][ ODBC Excel Driver...

2006-02-05 02:19:00 3843 0

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

用Java 读写Excel文件 背景介绍在我们日常进行的与java相关的开发中,可能会碰到要把一批特定格式的数据倒入到系统中的情况。举个例子来说,假设我正在作一个公司的员工培训信息管理系统,该系统中要涉及到员工的信息,课程的信息等。考虑到公司人员流动比较频繁,时常会有一个批新的员工加入到这个系统中...

2006-02-05 02:03:00 8495 0

原创 VC and Winsocket Programming - Downloading File From a Website

Using VC Develop a Tool to Download File1、介绍和背景昨天决定写一个程序“批量下载网页上相同格式的文件”,本以为用VC会很轻松搞定,但一用才知道,WinSocket编程几乎忘光了,弄了几乎整个下午加半个晚上都还徘徊在起点上,唉,又犯了眼高手低的错误。所以呢,...

2006-02-03 23:38:00 2198 0

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

动念中……

2006-02-02 01:00:00 1659 0

原创 往MySQL中存储图片

往MySQL中存储图片 1 介绍在设计到数据库的开发中,难免要将图片或音频文件插入到数据库中的情况。一般来说,我们可以同过插入图片文件相应的存储位置,而不是文件本身,来避免直接向数据库里插入的麻烦。但有些时候,向MySQL中插入图片更加容易管理。那么在MySQL中该怎么存储呢?参考资料[1]中有个...

2006-02-02 00:47:00 101100 6

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

用VC编写的SN快速输入工具 大家在安装软件时,一般都会遇到让输入序列号SN的情况。序列号(SN) 通常是由“-”分隔开的几部分组成,相应地,安装软件输入序列号的地方通常也是由几个文本框(TextBox)组成的,这时,为了输入序列号,我们就要在安装程序和记录有SN的文件之间粘贴、复制多次,非常麻烦...

2006-02-01 20:46:00 2545 0

原创 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 Simp...

2006-02-01 02:18:00 3684 0

提示
确定要删除当前文章?
取消 删除