patch
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ void print(std::string &str)
|
||||
std::cout << str << std::endl;
|
||||
}
|
||||
|
||||
void afficherConst(const int &nb)
|
||||
void printf_const(const int &nb)
|
||||
{
|
||||
std::cout << nb << std::endl;
|
||||
}
|
||||
@@ -22,6 +22,6 @@ int main()
|
||||
int tab2[] = {1, 2, 3, 41};
|
||||
iter(tab2, 4, add_one);
|
||||
std::cout << std::endl;
|
||||
iter(tab2, 4, afficherConst);
|
||||
iter(tab2, 4, printf_const);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user