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