struct THFI_Param
{
int nMinFaceSize;
int nRollAngle;
bool bOnlyDetect;
DWORD dwReserved;
THFI_Param()
{
nMinFaceSize=50;
nRollAngle=30;
bOnlyDetect=false;
dwReserved=NULL;
}
};
急!急!急! C++ 结构体带构造函数的在C#中改如何定义
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
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; } }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报