Créer Votre Premier Modèle en C++
main.cpp
#include <iostream> int main() { int x = 5; std::cout << typeid(x).name(); }
main.cpp
#include <iostream> template<typename Type> void check_type() { std::cout << typeid(Type).name() << std::endl; } int main() { // Try to change `int` to different type check_type<int>(); }
Tâche
Swipe to start coding
Solution
solution.cpp
Tout était clair ?
Merci pour vos commentaires !