耗尽积分, 请老师转换一个C函数为delphi函数. 致谢!(300)

Discussion in '请您翻译' started by 冰力不足, May 4, 2009.

  1. zn

    znxia New Member Member

    if i=11 then
    nc=2 else
    nc=3;
     
  2. 冰力不足

    冰力不足 New Member Member

    来自:znxia, 时间:2009-5-4 8:32:52, ID:3956673if i=11 then
    nc=2 else
    nc=3;谢谢!
     
  3. wq

    wql New Member Member

    呵呵!难点一if(!h.p2||!h.p3) 要怎么翻译才好?这样翻译:if (h.p2<>0) or (h.p3<>) then
    难点二int nC = (i==11 ? 2:3);
    这个问号该怎么翻译?if i=11 then
    nc=2 else
    nc=3;
     
  4. 冰力不足

    冰力不足 New Member Member

    来自:wql, 时间:2009-5-4 9:15:46, ID:3956690呵呵!难点一if(!h.p2||!h.p3) 要怎么翻译才好?这样翻译:if (h.p2<>0) or (h.p3<>) then
    难点二int nC = (i==11 ? 2:3);
    这个问号该怎么翻译?if i=11 then
    nc=2 else
    nc=3;
    感谢!
     
  5. 草原骏马

    草原骏马 New Member Member

    看来 楼主 的C语言功力很菜呀。上述两个问题都是C里的基本语法。是不是现在的学校都不开设C了?
     
  6. 冰力不足

    冰力不足 New Member Member

    多人接受答案了。