小永
2006-11-02 14:54:11 UTC
請問一下,我建立了一個Vector
裡面存了三四種不同class的物件
每種物件要作的事不同
有沒有辦法建立一個判斷式,自動判別然後執行嗎?
--
[1;36m [34m▊▊█ ▊▊█ [36m [;30m██ [37m
[44m [1;35m靜宜大學[;44m [1;36m水世界[;44m [1;36m [;44m [1;5;36mΥ[;44m [1;33m●[;44m [1;36m▊▊█ ▊▊█ [;44m [34m█[30;40m█ [37m
[44m [1;32mbbs.cs.pu.edu.tw [;44m [30m◢██◣ [1;37m◥◥◤ ◥◥◤ [;30;44m [34m█[30;40m█[37m
[0m[30;46m [33;1m140.128.9.94[0;30;46m [36;1m﹋[37m﹌[36m﹏[0;30m█[37;1m⊙[0;30m██[46m◣◢[37;1m﹏[36m﹋[37m﹌[36m﹏[0;46m [36m█[30;40m█[0m
[1;36m※ 飄流自 :[m[1;37m218-162-176-249.dynamic.hinet.net[m
裡面存了三四種不同class的物件
每種物件要作的事不同
有沒有辦法建立一個判斷式,自動判別然後執行嗎?
--
[1;36m [34m▊▊█ ▊▊█ [36m [;30m██ [37m
[44m [1;35m靜宜大學[;44m [1;36m水世界[;44m [1;36m [;44m [1;5;36mΥ[;44m [1;33m●[;44m [1;36m▊▊█ ▊▊█ [;44m [34m█[30;40m█ [37m
[44m [1;32mbbs.cs.pu.edu.tw [;44m [30m◢██◣ [1;37m◥◥◤ ◥◥◤ [;30;44m [34m█[30;40m█[37m
[0m[30;46m [33;1m140.128.9.94[0;30;46m [36;1m﹋[37m﹌[36m﹏[0;30m█[37;1m⊙[0;30m██[46m◣◢[37;1m﹏[36m﹋[37m﹌[36m﹏[0;46m [36m█[30;40m█[0m
[1;36m※ 飄流自 :[m[1;37m218-162-176-249.dynamic.hinet.net[m