Moving some code from Python to C++.
BASEPAIRS = { "T": "A", "A": "T", "G": "C", "C": "G" }
Thinking maps might be overkill? What would you use?
You can use the following syntax:
#include <map> std::map<char, char> my_map = { { 'A', '1' }, { 'B', '2' }, { 'C', '3' } };
1.4m articles
1.4m replys
5 comments
57.0k users