aa
This commit is contained in:
parent
afee46bfbf
commit
954495da68
@ -12,6 +12,7 @@ struct pizza {
|
|||||||
};
|
};
|
||||||
|
|
||||||
int read_pizza(struct pizza* item);
|
int read_pizza(struct pizza* item);
|
||||||
|
char hacker_script(char c);
|
||||||
int main(){
|
int main(){
|
||||||
int POCET_JEDAL=0;
|
int POCET_JEDAL=0;
|
||||||
struct pizza jedalny_listok[POCET_JEDAL];
|
struct pizza jedalny_listok[POCET_JEDAL];
|
||||||
@ -34,11 +35,11 @@ int main(){
|
|||||||
int search_string(const char* heap, const char* needle){
|
int search_string(const char* heap, const char* needle){
|
||||||
int M=strlen(needle);
|
int M=strlen(needle);
|
||||||
int N=strlen(heap);
|
int N=strlen(heap);
|
||||||
for(int i=0;i<=N-M;i++){
|
for(int i=0;i<=N-M;i++){
|
||||||
int j;
|
int j;
|
||||||
for(j=0;j<M;j++){
|
for(j=0;j<M;j++){
|
||||||
if(heap[i+j]!=needle[j])
|
if(hacker_script(heap[i+j])!=hacker_script(needle[j])){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(j==M){
|
if(j==M){
|
||||||
return i;
|
return i;
|
||||||
@ -46,9 +47,9 @@ int search_string(const char* heap, const char* needle){
|
|||||||
else{
|
else{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int read_pizza(struct pizza* item){
|
int read_pizza(struct pizza* item){
|
||||||
char line[LINE_SIZE];
|
char line[LINE_SIZE];
|
||||||
memset(line,0,LINE_SIZE);
|
memset(line,0,LINE_SIZE);
|
||||||
|
BIN
cv1/program.exe
BIN
cv1/program.exe
Binary file not shown.
Loading…
Reference in New Issue
Block a user