


Как изменить код, чтобы введенное слово не вырезалось, а добавлялось в конце?
// 333.cpp : Defines the entry point for the console application.
//Çàòèðàíèå ìàññèâà
#include "stdafx.h"
#include "conio.h"
#include "iostream.h"
#include "string.h"
#include "stdio.h"
int main(int argc, char* argv[])
{
char p[]={" I live in Mascow, it is a good sity I live"};
char str[12];
int i=0, j=0, k=0, s=0, l=0, n=0;
puts(p);
cout goto b;
l=strlen(p);
n=strlen(str);
for(i=0;i<l-n+1;i++)>l-n)
p[k]=0;
}
}
}
puts(p);
getch();
goto a;
b: printf("Oshibka\n");
return 0;
}
#include "stdafx.h"#include "conio.h"#include "iostream.h"#include "string.h"#include "stdio.h"int main(int argc, char* argv[]){char p[]={" I live in Mascow, it is a good sity I live"};char str[12];int i=0, j=0, k=0, s=0, l=0, n=0;puts(p);cout<<"cut"<<endl;>12)goto b;l=strlen(p);n=strlen(str);for(i=0;i<l-n+1;i++)>l-n)p[k]=0;}}}puts(p);getch();goto a;b: printf("Oshibka\n");return 0;}
наСильников похоже тут нету...
:)