代码搜索:MyString
找到约 1,391 项符合「MyString」的源代码
代码结果 1,391
www.eeworm.com/read/132381/14090724
h mystring.h
#if !defined Mystringmyssting
#define Mystringmyssting
#endif
www.eeworm.com/read/234927/14091944
h mystring.h
//类MyString的定义
#include
class MyString
{
public:
MyString() {m_data = NULL;} //缺省构造函数
MyString(const char *str); // 普通构造函数
MyString(const MyString &other); //
www.eeworm.com/read/234927/14091948
cpp mystring.cpp
//类MyString的实现
#include "mystring.h"
#include
// MyString的析构函数
MyString::~MyString(void)
{
if(m_data)
delete [] m_data;
m_data=NULL;
}
// MyString的普通构造函数
MyString::MyStri
www.eeworm.com/read/234925/14092184
cpp mystring.cpp
// 类CMyString的实现
#include "mystring.h"
#include
using namespace std;
// CMyString的析构函数
CMyString::~CMyString()
{
if(m_data) //如果指针m_data不是NULL,则要释放它所占的内存空间
delete [] m_data;
www.eeworm.com/read/234925/14092186
h mystring.h
//类CMyString的定义
#include
using namespace std;
class CMyString
{
public:
CMyString(); //缺省构造函数
CMyString(const char *str); //普通构造函数
~CMyString(); //析构函数
void Disp
www.eeworm.com/read/203645/15353978
h mystring.h
#ifndef __MYSTRING_h__
#define __MYSTRING_h__
#define NULL ((char *)0)
int stringlen(const char* src);
int stringcmp(char *s1,char *s2);
char* strcpy(char* dest,const char* src);
#endif
www.eeworm.com/read/203645/15353982
c mystring.c
#include"mystring.h"
int stringlen(const char* src)
{
int nlen=0;
while(*src++!='\0')
nlen++;
return nlen;
}
int stringcmp(char *s1,char *s2)
{
while(*s1||*s2) //如果S1和S2比较完毕 ('\0’)跳出
www.eeworm.com/read/203214/15363920
h mystring.h
//**********************************************************************************
//杨屹 2002/08/20 第一版
//字符串操作函数
//联系方法:gdtyy@ri.gdt.com.cn(2003/07/31以前有效)
//******************************
www.eeworm.com/read/203214/15363922
c mystring.c
//**********************************************************************************
//杨屹 2002/08/20 第一版
//字符串操作函数
//联系方法:gdtyy@ri.gdt.com.cn(2003/07/31以前有效)
//******************************
www.eeworm.com/read/109743/15550976
h mystring.h
#ifndef _MYSTRING_
#define _MYSTRING_
#include
#include
#include
#include
#include
#include
#include
/*
press the