Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3902675
  • 博文数量: 534
  • 博客积分: 10470
  • 博客等级: 上将
  • 技术积分: 4800
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-26 14:08
文章分类

全部博文(534)

文章存档

2021年(1)

2019年(1)

2017年(1)

2016年(2)

2013年(2)

2012年(10)

2011年(43)

2010年(10)

2009年(17)

2008年(121)

2007年(253)

2006年(73)

分类:

2007-10-27 17:39:07

写了一下午, Linux下的小的测试版本出来了:
我测试环境:
    AS3U3 kernel-version 2.6.9-34.EL
    gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)
    
下面是我的测试:
[gan@localhost dict]$ ls -l
总用量 20
-rw-rw-r--  1 gan gan 5890 10月 27 17:11 dict.c
-rw-rw-r--  1 gan gan   72 10月 27 16:41 Makefile
[gan@localhost dict]$ make
gcc -Wall -O2 dict.c -o dict
[gan@localhost dict]$ dict a
Get Form:
Input Word: a

a.一,一个,一只,一件.
I don't care what a car looks like as long as it gets me from A to B.我倒不在乎汽车的样子, 只要能把 我从一处载到另一处就行了.
Would you do me a favor?你能帮我一个忙吗?
Declension means varying the forms of nouns, pronouns and adjectives in a sentence.变格是指名词、代 词和形容词在句中的形式变化。

[gan@localhost dict]$ dict china
Get Form:
Input Word: china

n. 中国,瓷器
China is an oriental country with a long history.中国是一个有着悠久历史的东方国家。
This set of ancient china is invaluable.这套古瓷器非常珍贵。
China is a developing country.中国是一个发展中国家。

具体源码请查看: http://blog.chinaunix.net/u/19782/showart_399405.html

对总使用命令行的人来说应该感觉还可以, 改天找个时间弄个Windows下的版本出来! 有什么好的建议,请多多提!多谢!
阅读(2240) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~