#include<iostream>
using namespace std;
int Check(char *Source){
char *Get,*Find,*j;
int Count=0;
Find=(char*)malloc(100);
cin>>Find;
j=Find;
Get=Source;
while(*Source!='\0'){
while(*Get==*j){
j++;
Get++;
}
if(*j=='\0')
return ++Count;
else{
Count++;
Source++;
Get=Source;
}
j=Find;
}
return 0;
}
void main(){
char *p="akljsdfhoquwecba,kjsda";
int q;
q=Check(p);
if(q)
cout<<"第一次出现的位置为:"<<q<<endl;
else
cout<<"不存在"<<endl;
}
using namespace std;
int Check(char *Source){
char *Get,*Find,*j;
int Count=0;
Find=(char*)malloc(100);
cin>>Find;
j=Find;
Get=Source;
while(*Source!='\0'){
while(*Get==*j){
j++;
Get++;
}
if(*j=='\0')
return ++Count;
else{
Count++;
Source++;
Get=Source;
}
j=Find;
}
return 0;
}
void main(){
char *p="akljsdfhoquwecba,kjsda";
int q;
q=Check(p);
if(q)
cout<<"第一次出现的位置为:"<<q<<endl;
else
cout<<"不存在"<<endl;
}