On Tue, 9 Sep 2003 15:52:16 +0200, "Darko Lapanje" <zr*@hotmail.com> wrote:
how can I write program who removes all ' ' from the string?
There are ways that for an experienced programmer would be easier,
but as a novice, translate to C++:
1) Obtain string s from e.g. program arguments or user, or
simply set it to a well-known test value like "steak brandy cigar".
2) Set string t to empty.
3) For each character position i in s, in ascending order:
{
Let c be character number i in s.
If c is different from a space, then
{
Append c to the end of t.
}
}