Void main (void)
{
INT i = 10;
Printf ("i:% d / n", i);
{
INT i = 100; / * This Statement is Fine Since IT IT IT IT IT IT IT IT IT IT IT IT IT IT IT IT IT IS AKING TO DEFININING
a local function within the function. * /
/ * This statement is very refined,
Because it defines a part of a partial function in a function. * /
Printf ("i:% d / n", i);
}
Printf ("i:% d / n", i);
}
Code List 6 CRECENTFILILISTEX () function
Class CRECENTFILISTEX: PUBLIC CRECENTFILIST
{
PUBLIC:
CRECENTFILISTEX (Uint Nstart, LPCTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTS,
LPCTSTR LPSZENTRYFORMAT, INT NSIZE,
INT nmaxdisplen = afx_abbrev_filename_len):
CRECENTFILELIST (NStart, Lpszsection, LpszentryFormat, nsize, nmaxdisplen)
{
}
Bool getDisplayName (CString & Strname, Int Nindex,
LPCTSTR LPSZCURDIR, INT NCURDIR, BOOL BATLEASTNAME = true) Const;
}
Bool crecentfilelistdlgapp :: initInstance ()
{
...
LoadStdprofileSettings (); // load Standard Ini File Options (Including MRU)
/ / Load Standard INI file option (including MRU)
// delete the m_precentfilelist created in the loadstdprofilesettings.
// Delete M_PRecentFileList created in LoadStdProfileSettings.
Delete M_PRECENTFILELIST;
// the nsize argument of the constructor is set to four because
// LoadStdprofileSettings Takes a Default of Four. If you specify A
// Different Value for the NmaxMru Argument you need to change the THE
// nsize argument for the constructor call.
// Because the loadstdprofilesettings is default 4, the NSize parameter of the constructor is set to 4.
// If you specify a different value for the NMAXMRU parameter, you need to change the nsize parameter for the constructor call.
M_PRecentFileList = New CRECENTFILISTEX (0, FileeSection, FileEntry, 4);
m_precentfilelist-> readlist ();
...
}