Добавил:
korayakov
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:
// grayrat1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "iostream.h"
#include "stdio.h"
#include "math.h"
#include "string.h"
void main(void)
{
char s[128],s1[130];
unsigned int i;
cin>>s;
for (i=0;i<=strlen(s);i++) s1[i]=s[i+1];
s1[strlen(s)-1]=s[0];
s1[strlen(s)]=0;
strcat(s1,"ay");
cout<<s1;
cin>>i;
}
Соседние файлы в папке ООП_ЭТМО