代码搜索:SString
找到约 985 项符合「SString」的源代码
代码结果 985
www.eeworm.com/read/366495/9811673
cpp bo4-1.cpp
// bo4-1.cpp 串采用定长顺序存储结构(由c4-1.h定义)的基本操作(14个)
// SString是数组,故不需引用类型。此基本操作包括算法4.2,4.3,4.5
Status StrAssign(SString T,char *chars)
{ // 生成一个其值等于chars的串T
int i;
if(strlen(chars)>MAXSTRLEN)
www.eeworm.com/read/364713/9897595
cpp replace.cpp
//Replace.cpp
#include
#include
#include
#define MAXSTRLEN 255
typedef unsigned char SString[MAXSTRLEN+1]; //from 0 to 256 becoz '\0'
void Copy(SSt
www.eeworm.com/read/167250/9974367
cpp strs_fx.cpp
#include "d:\cpp\head.h"
#include "d:\cpp\ss.cpp"
#define MAXSTRLEN 255
int iCode,iSpace,iFunc,iRem,iTotal;
typedef unsigned char SString[MAXSTRLEN+1];
void ClearString(SString &S){
S[0]=0;
}
www.eeworm.com/read/362558/9992486
h seqstring.h
#define MAXLEN 40
typedef struct { /*串结构定义*/
char ch[MAXLEN];
int len;
}SString;
void createstring(SString *s)
{
int i,j;
char c;
printf("请输入要建立的串的长度:");
scanf("%d",
www.eeworm.com/read/362558/9992504
txt 4_10.txt
int StrIndex(SString s,int pos, SString t)
/*求从主串s的下标pos起,串t第一次出现的位置,成功返回位置序号,不成功返回-1*/
{
int i, j, start;
if (t.len==0)
return(0); /* 模式串为空串时,是任意串的匹配串 */
start=pos;
i=start;
j=
www.eeworm.com/read/166053/10039162
c bo4-1.c
/* bo4-1.c 串采用定长顺序存储结构(由c4-1.h定义)的基本操作(14个) */
/* SString是数组,故不需引用类型。此基本操作包括算法4.2,4.3,4.5 */
Status StrAssign(SString T,char *chars)
{ /* 生成一个其值等于chars的串T */
int i;
if(strlen(chars)>MAX
www.eeworm.com/read/281086/10266827
pas publicfunorpro.pas
unit PublicFunOrPro;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, StdCtrls, jpeg, Menus, ComCtrls, ToolWin, Buttons,winsock,Grids,
www.eeworm.com/read/425971/10299567
cpp bo5-51.cpp
// bo5-51.cpp 广义表的书写形式串为SString类型
#include"c4-1.h" // 定义SString类型
#include"bo4-1.cpp" // SString类型的基本操作
void sever(SString str,SString hstr) // 算法5.8 SString是数组,不需引用类型
{ // 将非空串str分割成两部分:hsub
www.eeworm.com/read/425971/10299749
cpp bo4-1.cpp
// bo4-1.cpp 串采用定长顺序存储结构(由c4-1.h定义)的基本操作(14个)
// SString是数组,故不需引用类型。此基本操作包括算法4.2,4.3,4.5
Status StrAssign(SString T,char *chars)
{ // 生成一个其值等于chars的串T
int i;
if(strlen(chars)>MAXSTRLEN)