This commit is contained in:
Zengtudor 2024-09-19 09:58:12 +08:00
parent 0cdd0396d6
commit 0a22cff253
1 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ int main()
std::array<char,MAX_SIZE> buf;
unsigned long long lines = 0;
unsigned int lines = 0;
std::filesystem::path input_path("filteredReads.txt"),output_path("reversedSequence.txt");
@ -80,7 +80,7 @@ int main()
while (input_file_stream.getline(buf.data(),MAX_SIZE,'\n'))
{
int m = lines%2;
int m = lines%=2; //防止溢出
const auto buf_len = strlen(buf.data());
const std::string_view suffix("\n"); //设置一个每个DNA序列结尾的字符这里是以\n换行来结尾
if (m == 1){
@ -104,7 +104,7 @@ int main()
);
}catch(...){
zt::print(
"Caught an unknown error because:\n",
"Caught an unknown error :\n",
"Closing\n"
);
}