NEW_IN_JAVA
Grünschnabel
Hi
Brauche folgendes Programm die diese Kriterien erfüllt. Bräuchte es dringend für meine Arbeit. Hat jemand von euch sowas.
1. Write a C++ class declaration for a set abstract data type (ADT). The declaration should contain appropriate comments to explain the action of the methods. The STL documentation may give you ideas for the comments, but you must ensure that your comments are clear. Your class should satisfy the criteria for an abstract data type (for example, it should not define any unnecessary or inappropriate methods). It should be as flexible as possible. You will be penalised for defining methods that do not fit with the set concept. Do not assume that the methods of the STL set class are appropriate.
2. a) Implement the set class in C++. Write a simple and clear explanation of how your class works. The data structure to represent the set must allocate an array of elements when the set is constructed. This is like the Stack class examined in the tutorial class. This is not necessarily the best representation to use, but it will give you something to discuss. Ideally, the set will still not have a fixed upper size.
b) Prepare a test program to evaluate your set class against the STL set class. The test program must output information to standard output so it can be easily redirected to a text file. Functional tests (i.e. tests that the classes produce the right results) should use one line per test in the format below. Separate the columns by tabs (hint: “\t”) so that it can easily be converted to a table in Word. You should convert the text file to a neat Word document before you hand it in. Any sensible format may be used for any testing of non-functional aspects (e.g. efficiency)
Anhang anzeigen 50035
Brauche folgendes Programm die diese Kriterien erfüllt. Bräuchte es dringend für meine Arbeit. Hat jemand von euch sowas.
1. Write a C++ class declaration for a set abstract data type (ADT). The declaration should contain appropriate comments to explain the action of the methods. The STL documentation may give you ideas for the comments, but you must ensure that your comments are clear. Your class should satisfy the criteria for an abstract data type (for example, it should not define any unnecessary or inappropriate methods). It should be as flexible as possible. You will be penalised for defining methods that do not fit with the set concept. Do not assume that the methods of the STL set class are appropriate.
2. a) Implement the set class in C++. Write a simple and clear explanation of how your class works. The data structure to represent the set must allocate an array of elements when the set is constructed. This is like the Stack class examined in the tutorial class. This is not necessarily the best representation to use, but it will give you something to discuss. Ideally, the set will still not have a fixed upper size.
b) Prepare a test program to evaluate your set class against the STL set class. The test program must output information to standard output so it can be easily redirected to a text file. Functional tests (i.e. tests that the classes produce the right results) should use one line per test in the format below. Separate the columns by tabs (hint: “\t”) so that it can easily be converted to a table in Word. You should convert the text file to a neat Word document before you hand it in. Any sensible format may be used for any testing of non-functional aspects (e.g. efficiency)
Anhang anzeigen 50035