Skip to content

Commit 0717344

Browse files
committed
Ajout d'une nouvelle fonctionnalité: /n
1 parent 80906e3 commit 0717344

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

headers/Management_Envoyer.h

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,20 @@ void FPL_Print_Init(std::vector<std::string>& content_line_slitted, std::string&
1313
std::string whatReplace = "envoyer ";
1414
std::string print_content = replaceFPL(line, whatReplace);
1515

16-
1716
// Envoyer
18-
19-
std::cout << print_content << std::endl;
17+
std::vector<std::string> vec = split(print_content);
18+
19+
int i = 0;
20+
for (auto const e : vec) {
21+
if (e == "/n") {
22+
vec[i] = "";
23+
std::cout << "\n";
24+
continue;
25+
}
26+
std::cout << e << " ";
27+
i++;
28+
}
29+
std::cout << "\n";
30+
31+
//std::cout << print_content << std::endl;
2032
}

0 commit comments

Comments
 (0)