Добавил:
Upload
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:prg-sem-sp / 1 / 17
.cpp/* Ќ ©вЁ ўбваҐз Ґвбп «Ё зЁб«® "5" ў бва®ЄҐ.*/
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void main(void)
{
char *n = "5";
char *str = (char*)malloc(80*sizeof(char));
printf("Enter string :\n");
gets(str);
if (strstr(str,n) != NULL) printf("YES");
else printf("NO");
getch();
}