本文整理汇总了C++中SArray::Add方法的典型用法代码示例。如果您正苦于以下问题:C++ SArray::Add方法的具体用法?C++ SArray::Add怎么用?C++ SArray::Add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SArray
的用法示例。
在下文中一共展示了SArray::Add方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CStudentAdapter
CStudentAdapter(IStudentCheckChanged * pSelChangedHandler)
:m_pSelChangedHandler(pSelChangedHandler)
,m_bCurrentExpand(TRUE),m_bExpiredExpand(FALSE)
,m_bAllCurrentChecked(FALSE),m_bAllExpiredChecked(FALSE)
{
StudentInfo data[] =
{
{
L"sb no.1",100,
SOUI::CTime(2015,9,1,0,0,0),
SOUI::CTime(2016,9,1,0,0,0),
10000,0
},
{
L"sb no.2",200,
SOUI::CTime(2015,9,2,0,0,0),
SOUI::CTime(2016,9,2,0,0,0),
100000,0
},
{
L"sb no.3",300,
SOUI::CTime(2015,9,3,0,0,0),
SOUI::CTime(2016,9,3,0,0,0),
100000,0
},
};
for(int i=0;i<ARRAYSIZE(data);i++)
{
m_stuCurrent.Add(data[i]);
}
StudentInfo data2[] =
{
{
L"nb no.1",400,
SOUI::CTime(2015,9,1,0,0,0),
SOUI::CTime(2016,9,1,0,0,0),
0,0
},
{
L"nb no.2",500,
SOUI::CTime(2015,9,2,0,0,0),
SOUI::CTime(2016,9,2,0,0,0),
0,0
},
{
L"nb no.3",600,
SOUI::CTime(2015,9,3,0,0,0),
SOUI::CTime(2016,9,3,0,0,0),
0,0
},
};
for(int i=0;i<ARRAYSIZE(data2);i++)
{
m_stuExpired.Add(data2[i]);
}
}
示例2: CSmsRecordAdapter
CSmsRecordAdapter()
{
RecordInfo recs[] =
{
{
SOUI::CTime(2015,9,1,0,0,0),
_T("sb no.1"),
_T("A¹ÉÃ÷Ì챩µø£¬ÓÐǮûǮʹ¾¢Âò¡£"),
},
{
SOUI::CTime(2015,9,1,0,0,0),
_T("sb no.2"),
_T("A¹ÉÃ÷Ì챩µø£¬ÓÐǮûǮʹ¾¢Âò¡£"),
},
{
SOUI::CTime(2015,9,1,0,0,0),
_T("sb no.3"),
_T("A¹ÉÃ÷Ì챩µø£¬ÓÐǮûǮʹ¾¢Âò¡£"),
},
{
SOUI::CTime(2015,9,1,0,0,0),
_T("sb no.4"),
_T("A¹ÉÃ÷Ì챩µø£¬ÓÐǮûǮʹ¾¢Âò¡£"),
},
{
SOUI::CTime(2015,9,1,0,0,0),
_T("sb no.5"),
_T("A¹ÉÃ÷Ì챩µø£¬ÓÐǮûǮʹ¾¢Âò¡£"),
},
};
for(int i=0;i<ARRAYSIZE(recs);i++)
{
m_smsRecord.Add(recs[i]);
}
}