You are on page 1of 1

#include <stdio.h> #include <string.

h> class list { public: char uword[40]; char sword[40]; list *next; public: list(); list(char *uword,char *sword) { strcpy(this->uword,uword); strcpy(this->sword,sword); this->next = NULL; } char * getword() { return uword; } char * getsortedword() { return sword; } void setword(char uword[]) { strcpy(this->uword,uword); } void setsortedword(char sword[]) { strcpy(this->sword,sword); } list* getNext() { return next; } void setNext(list *next) { this->next = next; } };

You might also like