Re: Why?? (prog question)

看板FB_chat作者時間17年前 (2009/04/06 11:06), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/23 (看更多)
>>>>> Tabbing is the worst form of indentation. It is *much* better to use >>>>> spaces consistently. > > The only real sin is not sticking to one style per project. All else is just EXACTLY. but when i write my own program i do it to make it the way best for me. anyway - doing ANYHOW but including proper comments are always best. proper comments are like this: /* this procedure calculates ...blah blah... from data included in tables pointed by X and Y, and stores results into table pointed by argument Z */ someprocedure(const int *X,const int *Y, const int *Z,int length) { someworkhere(); coded_in_any_style_may_be_mess } example of BAD comments: a=b+3; //adds 3 to b and stores result to a _______________________________________________ freebsd-chat@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-chat To unsubscribe, send any mail to "freebsd-chat-unsubscribe@freebsd.org"
文章代碼(AID): #19sN6c00 (FB_chat)
討論串 (同標題文章)
文章代碼(AID): #19sN6c00 (FB_chat)