- acf-52406.zip
- acfeditor
- AcfEditor.Domain
- acfeditor.sln
- acfeditor
- icons
- acf_project.ico
- images
- ApplicationProvider.bmp
- Control_TreeView.bmp
- Delete.bmp
- EditCode.bmp
- ErrorList.bmp
- NewDocument.bmp
- OpenFolder.bmp
- Option.bmp
- OptionContract.bmp
- OptionContracts.bmp
- Output.bmp
- Project.bmp
- Properties.bmp
- ReferencedAssemblies.bmp
- ReferencedAssembly.bmp
- Save.bmp
- SaveAll.bmp
- Status.bmp
- Referenced Assemblies
- CSParser.dll
- ICSharpCode.SharpZipLib.dll
- SunnyChen.Common.dll
- test
- AdaptiveConsole.sln
- AdaptiveConsole
- BuildProcessTemplates
- catool
- Catool.Contracts
- Catool.Provider
- catool.sln
- catool
- docs
- devman_enUS
- usrgde.doc
- usrgde.mht
- usrgde.pdf
- images
- acf.gif
- acf.psd
- banner.bmp
- banner.psd
- setup
- acfsetup.ism
- acfsetup
- Script Files
- Setup.dbg
- Setup.inx
- setup.isr
- Setup.map
- setup.obs
- Setup.rul
- String1033.txt
- support
- banner.bmp
- externior.bmp
- externior.jpg
- externior.psd
- license.rtf
- AdaptiveConsoleSetup.zip
- AdaptiveConsoleSetup.msi
- setup.exe
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Quick Start - The catool Application</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<BODY>
<P><FONT face=Verdana size=2>In this chapter, we will introduce how to use ACF
to develop a console application which performs arithmetic operations on two
given integers. For convenience, we give the name <FONT face=Courier
color=#800000>catool<FONT face=Verdana> <FONT color=#000000>(<FONT
color=#800000>ca</FONT>lculation <FONT color=#800000>tool</FONT>)</FONT>
</FONT></FONT>to this application and in the following chapters, we will discuss
the design concepts of ACF by taking catool as examples. </FONT></P>
<P><FONT face=Verdana size=2>There are four kinds of arithmetic operations on
two integers: addition, subtraction, multiplication and division. So in our
console application, we should specify the kind of the operation that we are
going to take. Also, we must provide the two integer numbers in the command
line.</FONT></P>
<P><FONT face=Verdana size=2>For the users who don't want to see verbose
information when the program performs calculation, we will provide a
switch called "nologo", which will suppress the display of the application
banner information.</FONT></P>
<P><FONT face=Verdana size=2>We will also provide a syntax with which users can
get the version information about the running application.</FONT></P>
<P><FONT face=Verdana size=2>In addition, when user provides invalid argument,
the help screen must be displayed.</FONT></P>
<P><FONT face=Verdana size=2>From the requirement listed above, we can now
figure out the syntaxes that needs to be supported by catool
application.</FONT></P>
<P>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0
cellPadding=2 width="95%" border=1>
<TBODY>
<TR>
<TD>
<P><FONT face=Courier color=#800000 size=2>1. catool.exe
/m|/method:add|sub|mul|div num1 num2 [/nologo]<BR>2. catool.exe
/version|/ver</FONT></P></TD></TR></TBODY></TABLE></P>
<P><FONT face=Verdana size=2>The first syntax has four arguments, the first
argument is for specifying the calculation method (addition, subtraction,
multiplication or division), the second and the third arguments are for
specifying the numbers on which the arithmetic operation will be applied. The
last argument is a switch, which is used for determining whether the banner
information should be suppressed.</FONT></P>
<P><FONT face=Verdana size=2>The second syntax has only one argument: the<FONT
face=Courier color=#800000> /version</FONT> or <FONT face=Courier
color=#800000>/ver</FONT>. By specifying this argument, the application
will print the version information on the screen.</FONT></P>
<P><FONT face=Verdana size=2>Don't worry about the requirement which needs help
information be displayed when the invalid arguments are provided. This is
totally handled by ACF.</FONT></P>
<P><FONT face=Verdana size=2>Now let's start and see how the <FONT face=Courier
color=#800000>catool</FONT> console application is implemented by using
ACF.</FONT></P></BODY>
</html>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I have more than 13 years' experience in software development and more than 5 years' working experience in software industry. I'm the National Certified System Analyst and now I'm the consultant of China System Analyst Institution. I also got the MCP/MCAD certificate on .NET technology in the year 2004.
I'm very interested in system architect and analysis, and also interested in .NET technologies. For my blog please refer to
http://www.sunnychen.org.