Екатерина
Ирек Сабитов
string[] array = {"text1", "text2" /*...*/};
string[] array2 = new string[5];
ИД
Иван Дадаев
#include
#include
int main()
{
char str[256];
char str1[256]="";
int i,k=0;
printf("Enter string: ");
gets(str);
for(i=0; i
{
str1[k]='.';
str1[k+1]='.';
str1[k+2]='.';
k+=2;
}
else
{
str1[k]=str;
}
k++;
}
printf("\n");
puts(str1);
getch();
return 0;
}
АС
Александр Савинов
string[] text = new string[5];
text[0] = Console.ReadLine();
text[1] = Console.ReadLine();
text[2] = Console.ReadLine();
text[3] = Console.ReadLine();
text[4] = Console.ReadLine();
Строковый массив на 5 строк с заполнением
Похожие вопросы