2008年5月16日星期五

"有錢"工程師

小弟曾經和印度,美國,加拿大的軟件工程師合作.....有出色的,有平凡的, 合作起來尚算順利,
但當中有個"有錢"工程師, 實在令小弟吃了不少苦頭!

1. 在幾萬到十幾萬行的code中,留下一些害蟲!
2.在幾萬到十幾萬行的code中,他只了解幾百行
3.暗地裡可隨意更改api, 他不會告訴我,
4.我寫email給他, 他可以當唔知,當睇唔到,開會又唔出席, 次次佢上司都同我講一句
"我會叫佢reply你email", 下次開會佢又講呢句, 一次又一次.....拖足成個月先reply,
個時我都死掂左啦!

其實一年前己寫信給他上司,狂插..估不到到了今天還可以繼續害我!

算吧, 說了半天廢話, 給大家一個c語言的簡單問題,

int a [10];

int *b[10];

int (*c)[10];

你知道a,b,c的分別嗎?

5 則留言:

  1. c is too low level, and is not OOP, not good for team development. java and .net is better.

    In my working organization, more than 80% of programmer belong to this type. When cooperative with external vendor, i found out that their performance is even worse.

    回覆刪除
  2. I also want to learn other language if I have spare time.
    I believe you are an expert in everywhere, ha.

    回覆刪除
  3. congratulation!! you can find the value of yourself!!!!

    回覆刪除
  4. for you question:
    int a[10] - 'a' is an integer array of 10 integers.

    int *b[10] - 'b' is an integer array of 10 integer pointers.

    int (*c)[10] - 'c' is an pointer to a n integer array of 10 integer elements.

    Is that correct?

    回覆刪除
  5. it is very happy to see you answer. You almost get 100% correct,except some wording for b.

    'b' is an array of 10 integer pointers.

    The Array doesn't have the type, but the array element does.

    I really appreciate your post, thanks!

    How about D?
    int (*(*d)(char ))[];

    回覆刪除