2008年8月5日 星期二

Coding Homework [2008-08-06], designing class VersionInfoY2008M08D06

// - - Begin memo item - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - //

(Memo Item created on August 6, 2008 11:10 AM)

- - - Begin title or keyword:

Coding Homework [2008-08-06], designing class VersionInfoY2008M08D06

- - - End title or keyword:

 

Description of this homework:

Design a class to automatically update a "Version Info String" like the following ones:

 

For using in other environments, like Microsoft Word:

Version: 1.00.01; Last Updated: [2008-08-06-AM-10-49-50]

Version: 1.00.01; Last Updated: [2008-08-06]

 

For using in a code editor, like VB's code editor:

Version: 1.00.01; Last Updated: [2008_08_06_AM_10_49_50]

Version: 1.00.01; Last Updated: [2008_08_06]

 

For saving some inks while printing it to a printer:

Version: 1.00.01; Last Updated: [2008 08 06 AM 10 49 50]

Version: 1.00.01; Last Updated: [2008 08 06]

 

We need to update the first "Version Info String" by inserting a newly updated "Version Info String" in a new paragraph right before it.

 

Input:

Text with one or more "Version Info String" embedded in it.

 

Output:

Text with a newly updated "Version Info String" inserted right before the first last updated "Version Info String".

 

Name of this class:

VersionInfoY2008M08D06

 

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - End memo item - - //

 

沒有留言: