lang_2023/include/builtin_functions.hpp

23 lines
392 B
C++

#pragma once
#include <string>
#include <iostream>
// for clangd
namespace info::builtin {
template<typename T>
inline void Print(const T& value) { // only for strings ??
std::cout << "\x1b[1;32mOutput:\x1b[0m " << value << '\n';
}
template<typename T>
inline T Read() {
T value;
std::cout << "\x1b[1;32mInput:\x1b[0m ";
std::cin >> value;
return value;
}
} // namespace info