代码搜索:String
找到约 10,000 项符合「String」的源代码
代码结果 10,000
www.eeworm.com/read/408460/11387520
h string.h
/***
*string.h - declarations for string manipulation functions
*
* Copyright (c) 1985-1990, Microsoft Corporation. All rights reserved.
*
*Purpose:
* This file contains the function declaratio
www.eeworm.com/read/408164/11403204
h string.h
//String.h
#ifndef String_H
#define String_H
const int MaxSize=100; //100只是示例性的数据,可以根据实际问题具体定义
template //定义模板类SeqList
class String
{
public:
String( ); //无参构造函数
S
www.eeworm.com/read/408164/11403205
dsw string.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
www.eeworm.com/read/408164/11403206
dsp string.dsp
# Microsoft Developer Studio Project File - Name="String" - Package Owner=
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Co
www.eeworm.com/read/408164/11403208
cpp string.cpp
//String.cpp
#include "String.h"
/*
*前置条件:串不存在
*输 入:无
*功 能:构建一个串
*输 出:无
*后置条件:构建一个串
*/
template
String:: String( )
{
data[0]="0";
length=0;
}
/*
*前置条件:串不存在
www.eeworm.com/read/408073/11405886
h string.h
#pragma once
#include "gamesys.h"
#include
#include
#include // used for Save / Load
//TODO: Could reuse vector code
#define STRING_GRANULARITY 32
#define
www.eeworm.com/read/408073/11405918
cpp string.cpp
#include "string.h"
#include "log.h"
int CString::Hash() {
int hash = 0;
for(int i = 0; i < len; i++)
hash += (int)data[i] * (473 + i);
return hash;
}
void CString::EnsureAllocate
www.eeworm.com/read/407803/11410546
c string.c
//-----------------------------------------------------------------------------
// string.c
//-----------------------------------------------------------------------------
//
//-------------------
www.eeworm.com/read/406786/11435644
c string.c
/*
* linux/lib/string.c
*
* (C) 1991 Linus Torvalds
*/
#ifndef __GNUC__
#error I want gcc!
#endif
#define extern
#define inline
#define __LIBRARY__
#include