1
0

」 feat(Ex01): Finished

This commit is contained in:
2024-12-06 16:06:57 +01:00
parent c80c06d354
commit 0682096484
28 changed files with 603 additions and 29 deletions

22
ex00/Log.cpp Normal file
View File

@ -0,0 +1,22 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* log.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/30 16:30:53 by adjoly #+# #+# */
/* Updated: 2024/11/30 16:32:37 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include <iostream>
#include <string>
void log(std::string emoji, std::string what, std::string who, std::string str) {
if (who.empty())
std::cout << "" << emoji << "" << what << ": " << str << std::endl;
else
std::cout << "" << emoji << "" << what << "(" << who << "): " << str << std::endl;
}