1、C语言中有a==b?c:d的三目运算,delphi中有没有功能相同的运算?
2、C++可以using namespace,delphi可以吗?

解决方案 »

  1.   

    delphi没有三目运算吧。我没有用c做过开发。可关于namespace我的理解好像和引用delphi的单元文件(含有几个类)没什么区别呀。namespace的好处是不是就是将几个不同的类用一个共同的变量引用啊。
      

  2.   

    delphi没有三目运算。
    delphi中的引用,就是在uses部分就可以了。
      

  3.   

    Unit MathStrUtils Delphi syntax:function IfThen(AValue: Boolean; const ATrue: Integer; const AFalse: Integer = 0): Integer; overload;function IfThen(AValue: Boolean; const ATrue: Int64; const AFalse: Int64 = 0): Int64; overload;
    function IfThen(AValue: Boolean; const ATrue: Double; const AFalse: Double = 0.0): Double; overload;
    function IfThen(AValue: Boolean; const ATrue: string; const AFalse: string = ''): string; overload;
      

  4.   

    namespace是不是与Variant或Interface有些类似啊?