Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Another Anus
SUBMITTED BY:
Guest
DATE:
Oct. 25, 2014, 2:56 p.m.
FORMAT:
C++
SIZE:
629 Bytes
Raw
Download
Tweet
HITS:
950
Go to comments
Report
#include
<stdio.h>
#include
<string.h>
#include
<stdlib.h>
void
what
(
char
*
string
);
void
main
()
{
char
st
[
50
]
=
"a3b4ccad3"
;
what
(
st
);
puts
(
st
);
getch
();
}
void
what
(
char
*
string
)
{
int
i
;
char
ch
,
*
temp1
,
*
temp2
,
arr
[
100
];
temp1
=
string
;
temp2
=
arr
;
while
(
*
temp2
++
=
*
temp1
++
)
{
if
(
*
temp1
>
'2'
&&
*
temp1
<=
'9'
)
{
i
=
*
temp1
-
'0'
-
1
;
puts
(
arr
);
for
(
ch
=
*
(
temp1
-1
);
1
;
temp2
++
,
i
--
)
*
temp2
=
ch
;
temp1
++
;
}
}
strcpy
(
string
,
arr
);
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus