Created
April 3, 2020 21:00
-
-
Save asa55/321602766f94ada7d4389f330a679d35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
template <typename T> | |
T square (T x) { | |
return x*x; | |
} | |
int main() { | |
cout << (5<4 ? "T" : "F") << endl; | |
cout << square(5.5) << endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment