余道长 2018-02-01 07:41 采纳率: 0%
浏览 1254
已采纳

急!急!急! C++ 结构体带构造函数的在C#中改如何定义

struct THFI_Param
{
int nMinFaceSize;
int nRollAngle;
bool bOnlyDetect;
DWORD dwReserved;
THFI_Param()
{
nMinFaceSize=50;
nRollAngle=30;
bOnlyDetect=false;
dwReserved=NULL;
}
};

  • 写回答

6条回答 默认 最新

  • psychopiz 2018-02-02 00:39
    关注
    public class THFI_Param {
    public int nMinFaceSize { get; set; }
    public int nRollAngle { get; set; }
    public bool bOnlyDetect { get; set; }
    public uint? dwReserved { get; set; }
    public THFI_Param() {
            this.nMinFaceSize = 50;
                this.nRollAngle = 30;
                this.bOnlyDetect = false;
                this.dwReserved = null;
        }
    }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(5条)

报告相同问题?