Приветствую Вас Гость | RSS

Delphi заготовки

Суббота, 11.05.2024, 10:48
Главная » 2012 » Май » 29 » Удалить из нее все слова, начинающиеся с буквы «а».
08:17
Удалить из нее все слова, начинающиеся с буквы «а».

Дана строка символов до точки. Удалить из нее все слова, начинающиеся с буквы «а».



uses
crt; var s,sub:string; i,n:integer; a:array[1..100] of string; ch:char; begin clrscr; writeln('Input str'); readln(s); i:=0;n:=0; repeat inc(i); if (s[i]=' ')and(s[i+1]<>' ') then begin inc(n); a[n]:=sub; sub:=''; end else if (s[i]<>' ')and(s[i]<>'.') then sub:=sub+s[i]; until i=length(s); if sub<>'' then begin inc(n); a[n]:=sub; end; writeln; writeln('Input char'); readln(ch); for i:=1 to n do if a[i][1]<>ch then write(a[i],' '); end.


автор
KaLLIaK
http://programmersforum.ru/member.php?u=208004
с сайта
http://programmersforum.ru/showthread.php?t=202877

Просмотров: 5427 | Добавил: NetSoftWare | Рейтинг: 0.0/0
Всего комментариев: 1
1 Eugenecot  
0
Hello dear friend, I would like to offer placement of your link (or links) on different platforms of the internet such as: forums, blogs, comments and much more. . .

Increase your Visibility Boost Your Seo Rank - Get Organic Traffic From Google. Ranking in Google isn’t hard. All you need is a healthy number of backlinks from referring domains that have authority and trust in Google’s eyes.

This Backlinks Service Benefits:

1. Easily get Google rankings

2. Get a lot of traffic from Google

3. You can earn from the website in different ways

4. Increase Domain Authority (DA)

Quality guaranteed !

PRICE - 20$

WebSite - https://goo.su/CHM5cJW

Имя *:
Email *:
Код *: