文件名称:ch4
介绍说明--下载内容均来自于网络,请自行研究使用
Status StrAssign(SString T,char *chars)
{ // 生成一个其值等于chars的串T
int i
if(strlen(chars)>MAXSTRLEN)
return ERROR
else
{
T[0]=strlen(chars)
for(i=1 i<=T[0] i++)
T[i]=*(chars+i-1)
return OK
}
}-Status StrAssign (SString T, char* chars) (//generate a value equal to its string of chars of T int i if (strlen (chars)> MAXSTRLEN) return ERROR else (T [0] = strlen (chars) for (i = 1 i <= T [0] i++) T [i] =* (chars+ i-1) return OK))
{ // 生成一个其值等于chars的串T
int i
if(strlen(chars)>MAXSTRLEN)
return ERROR
else
{
T[0]=strlen(chars)
for(i=1 i<=T[0] i++)
T[i]=*(chars+i-1)
return OK
}
}-Status StrAssign (SString T, char* chars) (//generate a value equal to its string of chars of T int i if (strlen (chars)> MAXSTRLEN) return ERROR else (T [0] = strlen (chars) for (i = 1 i <= T [0] i++) T [i] =* (chars+ i-1) return OK))
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ch4
...\ALGO4-1.CPP
...\ALGO4-2.CPP
...\algo4-3.cpp
...\ALGO4-4.CPP
...\ALGO4-5.CPP
...\bo4-1.cpp
...\Bo4-2.cpp
...\BO4-3.CPP
...\BOOKIDX.TXT
...\BOOKINFO.TXT
...\C4-1.H
...\C4-2.H
...\C4-3.H
...\file.dat
...\MAIN4-1.CPP
...\MAIN4-2.CPP
...\Main4-3.cpp
...\NOIDX.TXT
...\ALGO4-1.CPP
...\ALGO4-2.CPP
...\algo4-3.cpp
...\ALGO4-4.CPP
...\ALGO4-5.CPP
...\bo4-1.cpp
...\Bo4-2.cpp
...\BO4-3.CPP
...\BOOKIDX.TXT
...\BOOKINFO.TXT
...\C4-1.H
...\C4-2.H
...\C4-3.H
...\file.dat
...\MAIN4-1.CPP
...\MAIN4-2.CPP
...\Main4-3.cpp
...\NOIDX.TXT