Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Different results when , compare 2 strings and 1 str with 1 str from file Pin
Immunity1825-May-07 3:30
Immunity1825-May-07 3:30 
GeneralRe: Different results when , compare 2 strings and 1 str with 1 str from file Pin
Immunity1824-May-07 9:02
Immunity1824-May-07 9:02 
QuestionRe: Different results when , compare 2 strings and 1 str with 1 str from file Pin
David Crow24-May-07 9:51
David Crow24-May-07 9:51 
AnswerRe: Different results when , compare 2 strings and 1 str with 1 str from file Pin
Immunity1824-May-07 9:53
Immunity1824-May-07 9:53 
QuestionRe: Different results when , compare 2 strings and 1 str with 1 str from file Pin
David Crow24-May-07 10:01
David Crow24-May-07 10:01 
AnswerRe: Different results when , compare 2 strings and 1 str with 1 str from file Pin
Immunity1824-May-07 10:04
Immunity1824-May-07 10:04 
GeneralRe: Different results when , compare 2 strings and 1 str with 1 str from file Pin
David Crow24-May-07 10:10
David Crow24-May-07 10:10 
GeneralRe: Different results when , compare 2 strings and 1 str with 1 str from file Pin
Immunity1824-May-07 10:15
Immunity1824-May-07 10:15 
about the debug yes its debug arrestion (how it is spelled:P)
my code is
int CInfoRecoverDlg::Compare( CString line , CString str2)
{
	int nCount = 0;
	int index=0;
	for (int i = 0 ; i < line.GetLength() ; i++)
	{
		index=line.Find(str2,index);
		if( index!= -1 )
		{
			if( !isalpha(line.GetAt(index-1)) && !isalpha(line.GetAt(index+ str2.GetLength())))
			{
				nCount++;
				index++;
			}
		}
		else
		return nCount;
	}
	return nCount ;
}


Well yes i just want to complete the project (so i can give it ) and then i try to fingure out (my University teacher dont want to see C code correction but a program that work like google machine (give some words and return 10 top files.txt in chance to be what you want )

He asked us to make it in Visual Basic but as he teach us the Basic i felt i would confuse even more the C/C++ so i decide to make it in C/C++ Big Grin | :-D
Questionreading from the Microphone Pin
hamidreza_buddy24-May-07 7:39
hamidreza_buddy24-May-07 7:39 
AnswerRe: reading from the Microphone Pin
Mark Salsbery24-May-07 8:00
Mark Salsbery24-May-07 8:00 
AnswerRe: reading from the Microphone Pin
normanS24-May-07 9:08
normanS24-May-07 9:08 
Questionrelation between CMainframe and the application class Pin
prithaa24-May-07 6:12
prithaa24-May-07 6:12 
AnswerRe: relation between CMainframe and the application class Pin
David Crow24-May-07 7:08
David Crow24-May-07 7:08 
AnswerRe: relation between CMainframe and the application class Pin
Mark Salsbery24-May-07 8:12
Mark Salsbery24-May-07 8:12 
AnswerRe: relation between CMainframe and the application class Pin
Nelek24-May-07 21:22
protectorNelek24-May-07 21:22 
QuestionLNK2005 linking problem with libcmt.lib [modified] Pin
theboywilse24-May-07 5:41
theboywilse24-May-07 5:41 
QuestionApplication Crashes on OnBegindrag Pin
AAKAra24-May-07 5:19
AAKAra24-May-07 5:19 
QuestionAccess from thread Pin
garfield18524-May-07 5:12
garfield18524-May-07 5:12 
AnswerRe: Access from thread Pin
KellyR24-May-07 5:24
KellyR24-May-07 5:24 
GeneralRe: Access from thread Pin
garfield18524-May-07 5:38
garfield18524-May-07 5:38 
GeneralRe: Access from thread Pin
Roger Stoltz24-May-07 5:49
Roger Stoltz24-May-07 5:49 
QuestionWeird problem with bitmaps.. Pin
KellyR24-May-07 4:32
KellyR24-May-07 4:32 
Questionhow to close .exe file in process list in task manager Pin
nahitan24-May-07 4:13
nahitan24-May-07 4:13 
QuestionRe: how to close .exe file in process list in task manager Pin
David Crow24-May-07 4:19
David Crow24-May-07 4:19 
AnswerRe: how to close .exe file in process list in task manager Pin
Mark Salsbery24-May-07 6:32
Mark Salsbery24-May-07 6:32 

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.