<br>
<br>
You'll probably want to read the word into an array and then print out every other element. For example...<br>
<br>
for (i=0; i<=(strlen(array)); i++)<br>
{<br>
if ((i%2)==1) { cout<<array<i>; }<br>
}<br>
<br>
I haven't run this exact piece of code, but you get the idea.
<br>
<br>
I haven't come upon a solution quite yet, but I have a feeling that a recursive function or two is going to be the key. The heart of the problem is a mathematical one. For starters, there are 5 possible combinations to the example you gave...<br>
<br>
1) 1 3ptr. + 1 2ptr. =...
<br>
<br>
Hello,<br>
<br>
I'm hoping someone out there can offer some advice on a problem I'm having. I need to write a program that can map to a LAN, get a directory listing from various parts of that network, and then make some assesments of the files found based on the time/date stamps.<br>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.