Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Navn.h
- #ifndef Navn_h
- #define Navn_h
- #include <string>
- class Navn
- {
- private:
- static int antall; // Klassevariabel for å holde styr på hvor mange navn som ligger i lista.
- std::string navn; // Data-del som inneholder et navn.
- Navn* neste; // Nestepeker.
- public:
- Navn(std::string nvn, Navn* nst); // Konstruktør
- ~Navn(); // Destruktør
- std::string hentNavn() const; // get navn
- void settNeste(Navn* nst); // set nestepeker
- Navn* hentNeste() const; // get nestepeker
- static int hentAntall(); // get antall instanser
- };
- #endif
Add Comment
Please, Sign In to add comment