@Gravity
567 / 561 / 39
Регистрация: 29.01.2009
Сообщений: 1,274
|
04.11.2009, 14:42
|
|
C | 1
2
3
4
5
6
7
8
9
10
11
12
13
| #include <stdio.h>
#include <string.h>
main()
{
char s[] = "abcde", *p;
int i;
while( (p = strchr(s, 'a')) != NULL) {
i = p - s;
memmove(s + i, s + i + 1, strlen(s + i) + 1);
}
puts(s);
} |
|
0
|