#include <iostream.h>
#include <conio.h>
char *mystrstr(char *,char *);
void main(void)
{
clrscr();
char *str1,*str2;
str1 = new char[100];
str2 = new char[100];
cout << "Enter first string: ";
cin.get(str1,99);
cin.get();
cout << "Enter seconed string: ";
cin.get(str2,99);
cin.get();
cout << mystrstr(str1,str2);
getch();
}
char *mystrstr(char *s1,char *s2)
{
// my code in this block is wrong//
// Please help me;) //
}
Mahyar 0 Newbie Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Mahyar 0 Newbie Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
sarayaj 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.