Description: #include "comparer.h"
#include <iostream>
using namespace std
int Comparer::compareByName(Student& s1,Student& s2)
{
return strcmp(s1.m_szName,s2.m_szName)
}
int Comparer::compareBySurname(Student& s1,Student& s2)
{
return strcmp(s1.m_szSurname,s2.m_szSurname)
}
int Comparer::compareByGroup(Student& s1,Student& s2)
{
To Search:
File list (Check if you may need any files):
Laba_0\Debug\Laba_0.exe
......\.....\Laba_0.ilk
......\.....\Laba_0.pdb
......\Laba_0\comparer.cpp
......\......\comparer.h
......\......\Debug\BuildLog.htm
......\......\.....\comparer.obj
......\......\.....\group.obj
......\......\.....\Laba_0.exe.embed.manifest
......\......\.....\Laba_0.exe.embed.manifest.res
......\......\.....\Laba_0.exe.intermediate.manifest
......\......\.....\main.obj
......\......\.....\mt.dep
......\......\.....\sorter.obj
......\......\.....\student.obj
......\......\.....\vc90.idb
......\......\.....\vc90.pdb
......\......\group.cpp
......\......\group.h
......\......\Laba_0.vcproj
......\......\Laba_0.vcproj.HOME-E30F9A1377.imperial.user
......\......\Laba_0.vcproj.MICROSOF-3AFBC3.Администратор.user
......\......\main.cpp
......\......\sorter.cpp
......\......\sorter.h
......\......\student.cpp
......\......\student.h
......\Laba_0.ncb
......\Laba_0.sln
......\Laba_0.suo
......\......\Debug
......\Debug
......\Laba_0
Laba_0