Then maybe we can discuss more in details what is the main scope of your work, so I can understand better if my code does what you have in mind or/and it should be modified to get your point ?
this was question that i talked about that in my college class.in fact you should consider G and C by digit 0 and 1.so, with a construction algorithm for compute direct content 01 could reach to the answer. your could use a way by C-programming.
determined GC-content in DNA will be useful in illness diagnosis.