Click here to Skip to main content
16,006,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Image Filter Needed ? Pin
ThatsAlok22-Jun-05 22:44
ThatsAlok22-Jun-05 22:44 
Questionhow to highlight specific subitems on clistctrl Pin
stuzz22-Jun-05 20:17
sussstuzz22-Jun-05 20:17 
AnswerRe: how to highlight specific subitems on clistctrl Pin
ThatsAlok22-Jun-05 20:24
ThatsAlok22-Jun-05 20:24 
GeneralControlling USB Pin
Member 167164822-Jun-05 20:16
Member 167164822-Jun-05 20:16 
GeneralRe: Controlling USB Pin
Cedric Moonen22-Jun-05 20:42
Cedric Moonen22-Jun-05 20:42 
GeneralDialog Hidden on Initialization Pin
c121hains22-Jun-05 20:06
c121hains22-Jun-05 20:06 
GeneralRe: Dialog Hidden on Initialization Pin
ThatsAlok22-Jun-05 20:10
ThatsAlok22-Jun-05 20:10 
Generalsubstring search Pin
xlntbno1722-Jun-05 19:56
xlntbno1722-Jun-05 19:56 
hey

I want this function to return the location of the first letter of a substring in the searched string

int subsrc(char *target[BL], char *pattern[BL])		// returns first value of complete pattern location or NULL<br />
{<br />
	if (strlen(pattern)>strlen(target))<br />
		return NULL;<br />
	int first_i;<br />
	for (int i=0;i<strlen(target)-strlen(pattern);i++)<br />
	{<br />
		int j=0;<br />
		if (target[i] == pattern[j])<br />
			first_i = i;<br />
		while (target[i] == pattern[j])	// while selected letters are the same AND the pattern is not over<br />
		{<br />
			i++;<br />
			j++;<br />
			if (pattern[j] == NULL)<br />
				return first_i;<br />
		}<br />
	}<br />
	return NULL;<br />
}


thanks dudes
GeneralRe: substring search Pin
ThatsAlok22-Jun-05 20:14
ThatsAlok22-Jun-05 20:14 
GeneralRe: substring search Pin
xlntbno1722-Jun-05 20:19
xlntbno1722-Jun-05 20:19 
GeneralRe: substring search Pin
ThatsAlok22-Jun-05 20:27
ThatsAlok22-Jun-05 20:27 
GeneralRe: substring search Pin
xlntbno1722-Jun-05 20:50
xlntbno1722-Jun-05 20:50 
GeneralRe: substring search Pin
ThatsAlok22-Jun-05 21:02
ThatsAlok22-Jun-05 21:02 
GeneralRe: substring search Pin
Bob Stanneveld22-Jun-05 20:51
Bob Stanneveld22-Jun-05 20:51 
GeneralRe: substring search Pin
David Crow23-Jun-05 4:18
David Crow23-Jun-05 4:18 
GeneralRe: substring search Pin
Bob Stanneveld23-Jun-05 4:24
Bob Stanneveld23-Jun-05 4:24 
GeneralRe: substring search Pin
David Crow23-Jun-05 4:31
David Crow23-Jun-05 4:31 
GeneralRe: substring search Pin
ThatsAlok23-Jun-05 18:21
ThatsAlok23-Jun-05 18:21 
GeneralRe: substring search Pin
David Crow24-Jun-05 2:31
David Crow24-Jun-05 2:31 
GeneralRe: substring search Pin
ThatsAlok24-Jun-05 2:57
ThatsAlok24-Jun-05 2:57 
GeneralDynamic Memory allocation and Real Time applications Pin
abc87622-Jun-05 19:13
abc87622-Jun-05 19:13 
GeneralRe: Dynamic Memory allocation and Real Time applications Pin
David Crow23-Jun-05 4:21
David Crow23-Jun-05 4:21 
Questionhow can i make invisible password to my prog.!! Pin
jemi jets22-Jun-05 18:45
jemi jets22-Jun-05 18:45 
AnswerRe: how can i make invisible password to my prog.!! Pin
Christian Graus22-Jun-05 19:13
protectorChristian Graus22-Jun-05 19:13 
GeneralRe: how can i make invisible password to my prog.!! Pin
jemi jets22-Jun-05 22:52
jemi jets22-Jun-05 22:52 

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.