This is a MIME GnuPG-signed message. If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.
Yes, but this has nothing to do with C++, the programming language. The
algorithm would be the same whether it's implemented in C++, or Java, or
Python, or Perl, or any other capable language that's ever existed. Your
question seems to be not how to implement this specifically C++, but what it
actually is. Well, if "I" is your input array of size N, where N is
divisible by 3, and the I array is indexed from 0, then your output array
consists of elements
I, I, I, I[N-3]
I, I, I, I[N-2]
and finally followed by
I, I, I I[N-1]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
-----END PGP SIGNATURE-----