karen pointer sur fonctions en static, sed resolution eof

This commit is contained in:
Hugo LAMY
2022-02-10 17:21:01 +01:00
parent c287ea7c97
commit 504f6c3524
29 changed files with 369 additions and 8 deletions

View File

@@ -37,8 +37,8 @@ void Sed::replace() {
str.erase(str.begin());
str.push_back(file.get());
}
for (int i = 0; str[i + 1]; i++)
new_file << str[i];
str.erase(str.end() - 1);
new_file << str;
}