mirror of
https://github.com/szymon-jozef/ZUT-notatki.git
synced 2026-10-28 11:10:38 +01:00
blallblabla
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
template <typename T> T potroj(T x) { return x * 3; }
|
||||
|
||||
int main() {
|
||||
std::cout << potroj(7) << '\n';
|
||||
std::cout << potroj(2.5) << '\n';
|
||||
std::cout << potroj('A') << '\n';
|
||||
std::cout << potroj(7) << '\n'; // 21
|
||||
std::cout << potroj(2.5) << '\n'; // 7.5
|
||||
std::cout << potroj('A') << '\n'; // dziwny znak
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user