list

hy guys im having a problem im unable to implement main test program to read in a list of meanings and fully test the meanings. h class and list.h class

here is meanings.h class
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef MEANING
#define MEANING
#include <string>
class Meaning
{
public:
	Meaning();
	~Meaning(); 

// setter methods
	void setMeaning(string);
	void setNext(Meaning*);

// getter methods
	void printMeaning(); // display the meaning of a word on the screen
	string getMeaning(); // return the meaning of a word
	Meaning* getNext(); // get the next meaning for a word if it exists
private:
	string meaning;
	Meaning* next;
};
#endif 



and here is the list.h class
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef LIST
#define LIST
#include<string>
#include"Meaning.h"

class List
{
public:
	List();
	~List();

	void isnertAtRear(string meaning);
	void printList() const;
	bool isEmpty() const;

private:
	meaning *head;
};
#endif 



i did the classes but im unable to make the main program. by the way it is spouse to be a dictionary program
thanks for your help
Last edited on
closed account (S6k9GNh0)
What do you mean? Have you even tried making your own program?
Topic archived. No new replies allowed.