74{
75 char const* grades[] = { "A", "B", "C", "D", "F" };
76 char const* letters[] = { "Q", "E", "D" };
77 const unsigned gradeCount = sizeof(grades) / sizeof(grades[0]);
78 const unsigned letterCount = sizeof(letters) / sizeof(letters[0]);
79 char const**
location =
search((
char const**)grades, (
char const**)grades + gradeCount, (
char const**)letters, (
char const**)letters + letterCount,
str_equal);
80
82
83 copy((
char const**)grades + 1, (
char const**)grades + 1 + letterCount, (
char const**)letters);
84 location =
search((
char const**)grades, (
char const**)grades + gradeCount, (
char const**)letters, (
char const**)letters + letterCount,
str_equal);
85
88
89}
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
static bool str_equal(const char *a_, const char *b_)