Показать сообщение отдельно

  #7  
Старый 17.12.2008, 02:36
ToniKapuchon
Участник форума
Регистрация: 26.02.2006
Сообщений: 209
С нами: 10633766

Репутация: 93
По умолчанию

Цитата:
#include "stdafx.h"
# include <stdio.h>
# include <string.h>

int _tmain(int argc, _TCHAR* argv[])
{
char buffer[15];
int a;
printf("Enter a, please:");
scanf("%s", &buffer);

if (strcmp(buffer, "END")) {
printf("END_NO");
}
else {
printf("END_OK");
}
return 0;
}
вот
 
Ответить с цитированием