for(listOfStringsIterator = listOfStrings.begin(); listOfStringsIterator != listOfStrings.end(); listOfStringsIterator++) {
string finalstring = listOfStrings.front();
string kmerStrings;
for(int a = 0; a < finalstring.length(); a++) {
if(finalstring[a+2] == NULL){
string nextLine = listofStrings.at(listofStrings.front() + 1);
kmerStrings = string() + finalstring[a] + finalstring[]
std::cout << nextLine << std::endl;
}
else{
kmerStrings = string() + finalstring[a] + finalstring[a+1] + finalstring[a+2];
std::cout << kmerStrings << std::endl;
}
在我没有足够的字符来创建一个3个字母的序列之后,我正试图继续使用该字符串之后的字符串。