Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if defined(_MSC_VER)
- #include <__msvc_all_public_headers.hpp>
- #elif defined(__GNUC__)
- #include <bits/stdc++.h>
- #else
- #error "Unsupported compiler"
- #endif
- using namespace std;
- static void Print() {
- cout << endl;
- }
- template<typename T, typename... Args>
- static void Print(T t, Args... args) {
- cout << t;
- if constexpr (sizeof...(args) != 0) {
- cout << ", ";
- }
- Print(args...);
- }
- int main() {
- Print(1, 2, 3.1, "asd", 'q');
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement