Добавил:
student_tipo
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:лабораторные работы / строка
.docx#include "stdafx.h"
#include "stdio.h"
#include "conio.h"
#include "stdlib.h"
#include "string.h"
#include "locale.h"
void main()
{
setlocale (LC_ALL,"Rus");
char a[100],b;
int l,i;
printf("\n Введите строку:");
gets (a);
b=' ';
l=strlen(a);
for (i=0;i<l;i++)
{
if (a[i]==' ') printf ("\n");
else printf ("%c",a[i]);
}
getch();
}
Соседние файлы в папке лабораторные работы