求string 类源码
谁有string类的源码,可以实现=,<,>,==,输入,输出等运算 问题点数:40、回复次数:2Top
1 楼Cantonese00((⊙_⊙))回复于 2006-02-06 22:29:24 得分 30
帮LZ查了一下MSDN:
Illustrates how to use the string::operator!= Standard Template Library (STL) function in Visual C++.
template<class _E, class _TYPE, class _A> inline
bool operator!=(
const basic_string<_E, _TYPE, _A>& LString,
const _E *RCharArray
);
template<class _E, class _TYPE, class _A> inline
bool operator!=(
const _E *LCharArray,
const basic_string<_E, _TYPE, _A>& RString
);
Illustrates how to use the string::operator+ STL function in Visual C++.
template<class _E, class _TYPE, class _A> inline
basic_string<_E, _TYPE, _A>
operator+(
const basic_string<_E, _TYPE, _A>& LString,
const _E *RCharArray
);
template<class _E, class _TYPE, class _A> inline
basic_string<_E, _TYPE, _A>
operator+(
const _E *LCharArray,
const basic_string<_E, _TYPE, _A>& RString
);
template<class _E, class _TYPE, class _A> inline
basic_string<_E, _TYPE, _A>
operator+(
const basic_string<_E, _TYPE, _A>& LString,
const _E RChar
);
template<class _E, class _TYPE, class _A> inline
basic_string<_E, _TYPE, _A>
operator+(
const _E LChar,
const basic_string<_E, _TYPE, _A>& RString
);
template<class _E, class _TYPE, class _A> inline
basic_string<_E, _TYPE, _A>
operator+(
const basic_string<_E, _TYPE, _A>& LString,
const basic_string<_E, _TYPE, _A>& RString
);
Illustrates how to use the string::operator< Standard Template Library (STL) function in Visual C++.
template<class _E, class _TYPE, class _A> inline
bool operator<(const basic_string<_E, _TYPE, _A>& LString,
const _E *RCharArray);
template<class _E, class _TYPE, class _A> inline
bool operator<(const _E *LCharArray,
const basic_string<_E, _TYPE, _A>& RString);
template<class _E, class _TYPE, class _A> inline
bool operator<(const basic_string<_E, _TYPE, _A>& LString,
const basic_string<_E, _TYPE, _A>& RString);
Illustrates how to use the string::operator<< Standard Template Library (STL) function in Visual C++.
template<class _E, class _TYPE, class _A> inline
basic_ostream<_E, _TYPE>&
operator<<( basic_ostream<_E, _TYPE>& OStream,
const basic_string<_E, _TYPE, _A>& XString);
Illustrates how to use the string::operator<= Standard Template Library (STL) function in Visual C++.
template<class _E, class _TYPE, class _A> inline
bool operator<=(const basic_string<_E, _TYPE, _A>& LString,
const _E *RCharArray);
template<class _E, class _TYPE, class _A> inline
bool operator<=(const _E * LCharArray,
const basic_string<_E, _TYPE, _A>& RString);
Illustrates how to use the string::operator== STL function in Visual C++.
template<class _E, class _TYPE, class _A> inline
bool operator==(
const basic_string<_E, _TYPE, _A>& LString,
const _E *RCharArray
);
template<class _E, class _TYPE, class _A> inline
bool operator==(
const _E * LCharArray, const basic_string<_E, _TYPE, _A>& RString
);
template<class _E, class _TYPE, class _A> inline
bool operator==(
const basic_string<_E, _TYPE, _A>& LString,
const basic_string<_E, _TYPE, _A>& RString
);
Illustrates how to use the string::operator> Standard Template Library (STL) function in Visual C++.
template<class _E, class _TYPE, class _A> inline
bool operator>(const basic_string<_E, _TYPE, _A>& LString,
const _E *RCharArray);
template<class _E, class _TYPE, class _A> inline
bool operator>(const _E *LCharArray,
const basic_string<_E, _TYPE, _A>& RString);
Illustrates how to use the string::operator>> Standard Template Library (STL) function in Visual C++.
template<class E, class TYPE, class A> inline
basic_istream<E, TYPE>&
operator>>(basic_istream<E, TYPE>& InStream,
basic_string<E, TYPE, A>& String);
Top
2 楼Cantonese00((⊙_⊙))回复于 2006-02-06 22:30:56 得分 10
建议LZ装个MSDN方便查找哈。。。Top




