Click here to Skip to main content
15,922,007 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSort an std::vector?! [modified] Pin
bosfan21-Jun-06 4:11
bosfan21-Jun-06 4:11 
AnswerRe: Sort an std::vector?! Pin
toxcct21-Jun-06 4:19
toxcct21-Jun-06 4:19 
AnswerRe: Sort an std::vector?! Pin
Chris Losinger21-Jun-06 4:20
professionalChris Losinger21-Jun-06 4:20 
GeneralRe: Sort an std::vector?! [modified] Pin
bosfan21-Jun-06 4:31
bosfan21-Jun-06 4:31 
GeneralRe: Sort an std::vector?! [modified] Pin
Chris Losinger21-Jun-06 4:45
professionalChris Losinger21-Jun-06 4:45 
GeneralRe: Sort an std::vector?! Pin
bosfan21-Jun-06 5:00
bosfan21-Jun-06 5:00 
AnswerRe: Sort an std::vector?! Pin
Zac Howland21-Jun-06 4:30
Zac Howland21-Jun-06 4:30 
GeneralRe: Sort an std::vector?! [modified] Pin
bosfan21-Jun-06 4:38
bosfan21-Jun-06 4:38 
Hello,
this is my class CVector, i change the operator funkctions to:
<br />
class CVector//:public CResultObject<br />
{<br />
public:<br />
	CString csName;<br />
	CString csIndex;<br />
	UINT iIndex;<br />
public:<br />
	<br />
	CVector()<br />
	{<br />
		//CResultObject();<br />
<br />
		csIndex = L"";<br />
		csName = L"";	<br />
		iIndex = 0;<br />
	}<br />
	CVector(UINT index,CString csindex, CString csname,...)<br />
	{<br />
		iIndex = index;<br />
		csIndex = csindex;<br />
		csName= csname;<br />
	}	<br />
<br />
<br />
	bool operator==(const CVector& y)<br />
	{<br />
		<br />
		return (csUrl == y.csUrl) && (iIndex == y.iIndex);<br />
	}<br />
<br />
	<br />
	bool operator<(const CVector& y)<br />
	{<br />
		return iIndex < y.iIndex;<br />
	}<br />
<br />
};<br />


i try now to finish with your sample!

regards
break;

-- modified at 10:40 Wednesday 21st June, 2006
AnswerRe: Sort an std::vector?! Pin
FarPointer21-Jun-06 4:36
FarPointer21-Jun-06 4:36 
AnswerRe: Sort an std::vector?! Pin
Jun Du21-Jun-06 4:59
Jun Du21-Jun-06 4:59 
AnswerRe: Sort an std::vector?! Finished! Pin
bosfan21-Jun-06 20:58
bosfan21-Jun-06 20:58 
QuestionHuge size files IO- Performance issue? Pin
jayart21-Jun-06 3:53
jayart21-Jun-06 3:53 
AnswerRe: Huge size files IO- Performance issue? Pin
jayart21-Jun-06 3:56
jayart21-Jun-06 3:56 
QuestionRe: Huge size files IO- Performance issue? Pin
David Crow21-Jun-06 4:11
David Crow21-Jun-06 4:11 
AnswerRe: Huge size files IO- Performance issue? Pin
jayart21-Jun-06 6:02
jayart21-Jun-06 6:02 
GeneralRe: Huge size files IO- Performance issue? Pin
David Crow21-Jun-06 6:21
David Crow21-Jun-06 6:21 
GeneralRe: Huge size files IO- Performance issue? Pin
Zac Howland21-Jun-06 4:21
Zac Howland21-Jun-06 4:21 
AnswerRe: Huge size files IO- Performance issue? Pin
Ryan Binns21-Jun-06 4:29
Ryan Binns21-Jun-06 4:29 
AnswerRe: Huge size files IO- Performance issue? Pin
James R. Twine21-Jun-06 6:52
James R. Twine21-Jun-06 6:52 
Questionabout FARPROC* Pin
George_George21-Jun-06 3:05
George_George21-Jun-06 3:05 
AnswerRe: about FARPROC* Pin
zouchao111221-Jun-06 3:14
zouchao111221-Jun-06 3:14 
GeneralRe: about FARPROC* Pin
George_George21-Jun-06 17:20
George_George21-Jun-06 17:20 
AnswerRe: about FARPROC* Pin
Sarath C21-Jun-06 3:22
Sarath C21-Jun-06 3:22 
GeneralRe: about FARPROC* Pin
George_George21-Jun-06 17:35
George_George21-Jun-06 17:35 
AnswerRe: about FARPROC* Pin
David Crow21-Jun-06 3:29
David Crow21-Jun-06 3:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.