guys I could use some advice on this. below is part of my pseudo code which explains what should do but it's not
here it goes
srand....;
array[] = {'A','B','C'};
do
Enter how many pairs: (for example) 4
for loop
{
function that outputs pair of letters from the array;
}
example output:
AB CA CB BA
Now my issue is this. There is another function that has all the possible outcomes from these letter in pairs of two in lower case.
Bunch of if statements. I have to list the comparables right below the output.
I have no idea how to do that. so far I've only been able to get output like this:
AB ab CA ca CB cb BA ba
or
AB ab
CA ca
CB cb
BA ba
because I have that second function inside that for loop
when I put it outside the for loop I get the output that looks like this
AB CA CB BA
ba ba ba ba
which is what I need but the pairs need to be corresponding with their lower case counterparts
like this:
AB CA CB BA
ab ca cb ba
I need advice on how to accomplish that. I read the sticky so I'm not sure if I should post the code or not. Maybe it would easier for someone to point me in the right direction if I showed the code.
here it goes
srand....;
array[] = {'A','B','C'};
do
Enter how many pairs: (for example) 4
for loop
{
function that outputs pair of letters from the array;
}
example output:
AB CA CB BA
Now my issue is this. There is another function that has all the possible outcomes from these letter in pairs of two in lower case.
Bunch of if statements. I have to list the comparables right below the output.
I have no idea how to do that. so far I've only been able to get output like this:
AB ab CA ca CB cb BA ba
or
AB ab
CA ca
CB cb
BA ba
because I have that second function inside that for loop
when I put it outside the for loop I get the output that looks like this
AB CA CB BA
ba ba ba ba
which is what I need but the pairs need to be corresponding with their lower case counterparts
like this:
AB CA CB BA
ab ca cb ba
I need advice on how to accomplish that. I read the sticky so I'm not sure if I should post the code or not. Maybe it would easier for someone to point me in the right direction if I showed the code.