Help with C++ program, for making string constants.?

Now I'm having problem regarding Codon and their respective amino acid.
For example UCU,UCA codes for Serine( Codon=group of 3 nucleotide like UUA)
UAU codes for Tyrosine.
Now the problem is what should I use to make this output?
The person gives coding of base pairs like a u a c g etc through that previous array.
What should be used here? Should I use
const char codon []="nucleotide";
but it'll take a lot of time and make my code lengthy.
May I use a file?Fstream thing? But I have no idea how it would work with it.
Please help.


example run
user enters RNA sequence in a char array;
example sequnce be
U
C
A
C
G
A
it should code for two amino acids and output should be
Leucine
Arginine
Topic archived. No new replies allowed.