# 模板 ``` #include <iostream> #include <string> #include <cstdio> using namespace std; template<class T> int size(T a) { return sizeof(a); } int main() { double a; int b; cout << size(a) << endl; cout << size(b) << endl; } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up