Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Inline CPP undefined subroutine

by Anonymous Monk
on Nov 05, 2018 at 13:21 UTC ( #1225263=note: print w/replies, xml ) Need Help??


in reply to Re: Inline CPP undefined subroutine
in thread Inline CPP undefined subroutine

I would rather use:
int countGC(char * _gcString) { string gcString(_gcString); int res(0); for (int i = 0; i < gcString.length(); i++) { if (gcString[i] +== 'C' || gcString[i] == 'G') { res++; } } return res; }
Cheers :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1225263]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2018-12-19 02:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (83 votes). Check out past polls.

    Notices?