* Function:
* 1. Replace the first oldstr with newstr in srcstr
* Arguments:
* IN :
* srcstr
* oldstr
* newstr
* OUT :
* srcstr
* Return:
* 1. If find and replace one oldstr with newstr in srcstr , return 1
* 2. If find no oldstr in srcstr , return 0
* 3. If error (malloc return NULL) return -1
* notes:
* 1. srcstr should be large size enough.
W2kPrintDrvSample
Feature
=======
* Support two page directions, portrait and landscape
* Support just one page size, A4
* Support two resolutions, 200 x 200 and 100 x 100 dpi
* Support two color mode, color(24bpp) and monochrom
* Support halftoning in monochromatic mode
* Support color identifying(7 colors)
* Support type identifying(3 types)
...
Usage
=====
* 在monochromatic mode下,可以通過設置黑色的輸出類型來控制輸出
* 在color mode下,可以通過設置各個顏色的輸出類型來控制輸出,7種
顏色以外的顏色都作為黑色來識別
* 在輸出多頁文件時,可以分別指定每頁的輸出文件名,也可以使用自動
添加頁號的功能
...
Known Problems
==============
Developer notes
===============
* 在windows ddk 命令行環境下編譯
參考步驟:
1. 將W2kPrintDrv解壓至DDK安裝目錄
2. 執行“開始”菜單->Developement Kits->Windows 2000 DDK->Checked Build Enviroment
3. 在命令行環境輸入
> cd W2kPrintDrv
> build
Author
======
terrificskyfox <terrificskyfox@yahoo.com.cn>
encode.v The encoder
syndrome.v Syndrome generator in decoder
berlekamp.v Berlekamp algorithm in decoder
chien-search.v Chien search and Forney algorithm in decoder
decode.v The top module of the decoder
inverse.v Computes multiplication inverse of an Galois field element
test-bench.v The test fixture, and some brief notes on using the modules.
data-rom.v A simple data source for testing
run For those intelligence-challenged who can t run verilog
LGPL The license
Address book helps you look up your addresses from the system tray.
It is quite useful in that way 慶ause it stays out of the way and is
easily accessible when needed. Double clicking on any URL will start
the default web browser and take you to that URL. Double clicking on
the phone number will dial that number. Every column supports
sorting and can be customized to your needs. Preview will display
the notes associated with each record.
This program can also import Comma Separated Values (*csv) text files
of Outlook Express.
this m file can Find a (near) optimal solution to the Traveling Salesman Problem (TSP) by setting up a Genetic Algorithm (GA) to search for the shortest path (least distance needed to travel to each city exactly once)
notes:
1. Input error checking included
2. Inputs can be specified in any order, so long as the parameter pairs are specified as a parameter , value
Problem Statement
You are given a string input. You are to find the longest substring of input such that the reversal of the substring is also a substring of input. In case of a tie, return the string that occurs earliest in input.
Definition
Class: ReverseSubstring
Method: findReversed
Parameters: string
Returns: string
Method signature: string findReversed(string input)
(be sure your method is public)
notes
The substring and its reversal may overlap partially or completely.
The entire original string is itself a valid substring (see example 4).
Constraints
input will contain between 1 and 50 characters, inclusive.
Each character of input will be an uppercase letter ( A - Z ).
Examples
0)
"XBCDEFYWFEDCBZ"
Returns: "BCDEF"
We see that the reverse of BCDEF is FEDCB, which appears later in the string.
1)