Use universal functions

xiaoxiao2021-03-02  62

// Use universal function // WriteD by Swords 2005/3/15

#include

Template Void Sample (T1 X, T2 Y);

Void Main (Void) {Sample (10, "Hi"); Sample (0.23, 20L); Sample ("Jamsa's", "C / C ");}

Template Void Sample (T1 X, T2 Y) {COUT << x << '' << Y << endl;}

转载请注明原文地址:https://www.9cbs.com/read-31615.html

New Post(0)