All pastes #177800 Raw Edit

rvsjoen

public cpp v1 · immutable
#177800 ·published 2006-09-20 18:22 UTC
rendered paste body
*** test.cpp ***#include "person.h"#include <iostream>using namespace std;int main ( int argc, char *argv[] ){	Person p;}*** person.h ***#ifndef __person_h__#define __person_h__#include "allenr.h"#include "dato.h"#include <iostream>#include <string>using namespace std;class Person {	public:		Person();		Person( string, telefonNr, telefonNr, telefonNr, int, int, int );		Person( const Person& );		void skrivUtPerson();	private: 		string navn;		AlleNr telefon;		Dato* fodt;};#endif*** person.cpp ***#include "person.h"#include <iostream>#include <string>using namespace std;Person::Person(){		navn = "John";}void Person::skrivUtPerson(){	cout << "Navn: " << navn << endl << endl;}