Sample codes of SEARCH function in VC++..pls
Article Writing
2
Posts
2
Posters
7
Views
1
Watching
-
I'm urgently searching for the sample codes of SEARCH function written in VC++.. hope that someone can help me on this....thanks..
================== The original message was: I'm urgently searching for the sample codes of SEARCH function written in VC++.. hope that someone can help me on this....thanks..
Take a look at strstr() char hello[1234]; strcpy(hello,"My name is Andreas and i am a programmer"); char *pnt; pnt=strstr(hello,"Andreas"); int len=pnt-hello; char space[100]; ::MessageBox(0,_itoa(len,space,10),"Found at",0);