作者xcycl (XOO)
看板Programming
標題Re: [問題] C++ try-catch語法
時間Mon Sep 24 23:14:33 2007
: ----------K&R style (跟SLX很類似)------------
: void foo()
: {
: arguments...
: inner_scope
: {
: inner_arguments...
: }
: }
K & R 應該是
void foo(){
arguments...
inner_scope{
inner_arguments...
}
}
Sun 建議 Java 的方式大致與 K&R 一樣。
: ----------Java Style ------------------------
: void foo(){
: arguments...
: inner_scope(){
: inner_arguments...
: }
: }
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.134.69.245
推 sunneo:那我的eclipse built-in style format =_="220.132.228.138 09/24 23:16
→ sunneo:我改一下 ~_~220.132.228.138 09/24 23:18