2012-07-02 variant型 C++ int main() { Var a; a = "abc"; cout << a << endl; a = 1234; cout << a << endl; return 0; } $ ./a.out abc 1234