代码搜索:SString
找到约 985 项符合「SString」的源代码
代码结果 985
www.eeworm.com/read/297233/8041079
h scan.h
/* scan.h - Utility declarations for scan-decls and fix-header programs.
Copyright (C) 1993 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
u
www.eeworm.com/read/297233/8042196
c scan.c
/* Utility functions for scan-decls and fix-header programs.
Copyright (C) 1993, 1994 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
under t
www.eeworm.com/read/123658/14618542
h scan.h
/* scan.h - Utility declarations for scan-decls and fix-header programs.
Copyright (C) 1993 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
u
www.eeworm.com/read/123658/14618963
c scan.c
/* Utility functions for scan-decls and fix-header programs.
Copyright (C) 1993, 1994 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
under t
www.eeworm.com/read/362558/9992454
txt 4_6.txt
int StrLength(SString s)
/* 返回串s的长度*/
{
return(s.len);
}
www.eeworm.com/read/362558/9992482
txt 4_3.txt
void StrCopy(SString *s, SString t)
/*将串t的值复制到串s中*/
{
int i;
for (i=0;ich[i]=t.ch[i];
s->len=t.len;
}
www.eeworm.com/read/362558/9992524
txt 4_4.txt
int StrEmpty(SString s)
/*若串s为空则返回1,否则返回0 */
{
if (s.len==0)
return(1);
else
return(0)
}
www.eeworm.com/read/362558/9992481
txt 4_5.txt
int StrCompare(SString s, SString t)
/*若串s和t相等则返回0;若s>t则返回正数;若s
www.eeworm.com/read/431296/8690671
c 4.17.c
4.17③ 编写算法,实现串的基本操作Replace(&S,T,V)。
要求采用教科书4.2.1节中所定义的定长顺序存储表示,
但不允许调用串的基本操作。
要求实现以下函数:
Status Replace(<mark>SString</mark>& s, <mark>SString</mark> t, <mark>SString</mark> v);
/* 用串v替换串s中所有和串t匹配的子串。 */
/* 若有与t匹配的子串被替换,则返回TRUE;*/ ...
www.eeworm.com/read/167250/9974385
cpp strs.cpp
#include "d:\cpp\head.h"
#define MAXSTRLEN 255
typedef unsigned char SString[MAXSTRLEN+1];
//------------------------------------------------------
void StrAssign(SString S,char *ch){
//Create