W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
#include
using namespace std; template
class Box { public: T value; Box(T v) { value = v; } void show() { cout << "值:" << value << "\n"; } }; int main() { Box
intBox(50); Box
strBox("Hello"); intBox.show(); strBox.show(); return 0; }