Help for this page

Select Code to Download


  1. or download this
    int countGC(char * _gcString) {
            string gcString = string(_gcString);
    ...
            for (int i = 0; i < gcString.length(); i++) { if (gcString[i] 
    +== 'C' || gcString[i] == 'G') { res++; } }
            return res;
    }