软件详细设计说明书(例)

内容发布更新时间 : 2024/5/18 6:12:45星期一 下面是文章的全部内容请认真阅读。

.

//该函数是将字符串转换为字节数组 public byte[] StringtoByte(string stringInfo) {

messagebuffer = System.Text.ASCIIEncoding.ASCII.GetBytes(stringInfo); return messagebuffer; }

//该函数将整型转换为个字节 public byte[] InttoByte(int number)

{

messagelength=BitConverter.GetBytes(number);

return messagelength; }

//将浮点型转换为个字节

public byte[] DoubletoByte(double price) {

byte[] pricebyte = BitConverter.GetBytes(price); return pricebyte; }

//合并一个字符串(字节数组)和他的长度作为一个包 public byte[] Combinarray(byte[] messle, byte[] messinfo) {

messagebag=new byte[messle.Length+messinfo.Length];

精选范本

.

int index;

for (index = 0; index < messle.Length; index++) messagebag[index] = messagelength[index]; for (int index1 = 0; index1 < messinfo.Length; index1++) messagebag[index + index1] = messagebuffer[index1]; return messagebag;

} //解包头

public byte[] BagHead(char head) {

byte[] headbyte = BitConverter.GetBytes(head); return headbyte; }

//读包头

public char DeBagHead(byte[] buffer) {

char headinfo = BitConverter.ToChar(buffer, 0); return headinfo; }

//该函数为解包信息为字符串!

public string deMessgeBag(byte[] Messagebag,int start,out int next) {

next = BitConverter.ToInt32(Messagebag, start);

string message = System.Text.ASCIIEncoding.ASCII.GetString(Messagebag, start + 4, next);

return message; }

精选范本

.

4 运行设计 4.1 运行模块组合

说明对系统施加不同的外界运行控制时所引起的各种不同的运行模块组合,说明每种运行所历经的内部模块和支持软件。

4.2 运行控制

说明每一种外界的运行控制的方式方法和操作步骤。

4.3 运行时间

说明每种运行模块组合将占用各种资源的时间。

精选范本

.

5 系统数据结构设计 5.1 逻辑结构设计要点

给出本系统内所使用的每个数据结构的名称、标识符以及它们之中每个数据项、记录、文卷和系的标识、定义、长度及它们之间的层次的或表格的相互关系。

客户端类图:

windowForm:Form Private: userLogDialog

userNametextBox userPasswordtextBox userlogOKbotton

userlogCanselbutton tabPage MenuBar

stockRealtimeGraphitem stock Quote Dialog dataGridView

userBuyStockID userBuyStockcount 精选范本 userBuyStockprice userBuyStockButton ...sell .

精选范本

(接上) MD5encrypt(string) //以下都要通过sendMestoServer //向主机发送信息 logOK_press(event,handle); stockQuoteitem_press(e,h); buyStockButton_press(e,h); sellStockButton_press(e,h); stocklookButton_press(e,h); ////// 该函数调用drawPicture画图 stockRealtimeGraphitem_press(e,h)

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4 ceshi