If you can do without using std::string at all then the following is simpler and will be faster. And you can use Inline C (though it works as is with Inline CPP):
int countGC(char * gcString) { int res = 0; for (int i = strlen(gcString); i-->0; gcString++) { if (*gcStr +ing == 'C' || *gcString == 'G') { res++; } } return res; }
bw, bliako
In reply to Re^2: Inline CPP undefined subroutine
by bliako
in thread Inline CPP undefined subroutine
by Alessandro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |