SyntaxFix
Write A Post
Hire A Developer
Questions
BASEPAIRS = { "T": "A", "A": "T", "G": "C", "C": "G" } What would you use?
Maybe:
static const char basepairs[] = "ATAGCG"; // lookup: if (const char* p = strchr(basepairs, c)) // use p[1]
;-)