### College Homework Problem

Hey guys! I'm new to CPP, and coding in general. Any help is appreciated! I'm working on a project right now that involves DNA encoding.
Using the following chart,
http://gyazo.com/4d5f086c9d7f78c619d384e8f51729d4.png?1363669605
I needed to write a function in which a user would type in five of the letters denoted "IUPAC Notation", and it would form all the possible strands using the codons. For example, if someone entered the following characters in the following order (M,W,Q,W,H), the program would print
ATGTGGCAATGGCAT
ATGTGGCAGTGGCAT
ATGTGGCAATGGCAC
ATGTGGCAGTGGCAC

I have a good idea of how to do it using nested for loops, my problem is with the arrays I have written. We aren't allowed to use strings, so I made character arrays for each codon. I then made arrays of those arrays to represent the amino acids (in IUPAC notation). We haven't learned about pointers, yet, so I had to learn that on my own. So i declared the arrays of the amino acids as char*, but I can't seem to use those arrays within the function I have written. Since I need the array to correspond to the input, I tried making a function that would take the input character, and return the array, but the compiler refused. Any suggestions? I'm kind of lost, since I can't figure out any solution that doesn't use strings, and we haven't learned about pointers yet.
 I tried making a function that would take the input character, and return the array

Why not make it take a character and an integer as input, and print the corresponding three letters?
For example, printAminoacid('N', 1) would print AAT, and printAminoacid('D', 2) would print GAC.
Yes! That exact idea actually hit me this morning while I was in the shower. Thank you for your help!
i would say that shower is the best place for ideas :)
Topic archived. No new replies allowed.