0

これが私が与えられたサンプルの質問です。

You are given files containing templates for a StackType, a QueueType, and a
BinarySearchTreeType.  There is also a file called Record.h that holds the
declarations and definitions for a Record class that contains information about a
student. All function bodies are given except for the overloading of the 
operators “<” and “>”. 

Write a main program, sort.cpp, that takes a squential binary file called 
Student.dat that contains records of the given class, then prints it out ordered 
by student ID. You may use all or none of the templates given to you.

これが何を求めているのか、まったくわかりません。これを行うための最も迅速で簡単な方法は何でしょうか? 最も簡単または最速なのは、誰かがクイックソートまたはマージソートを適用することだと思います。サンプルコードを投稿してください。

4

0 に答える 0