Hey guys
here is my prob. I have two file. One is a .h and the other is a .cpp file:
// Grundstueck.cpp (bspl0048.cpp)
#include <iostream>
#include <cstring>
#include "bspl0048a.h" // Grundstueck.h
using namespace std;
Grundstueck::Grundstueck() {
}
Grundstueck::~Grundstueck() {
}
void Grundstueck::speichereGrunddaten(const char *n,
int f, int st, int g) {
strncpy(gemarkung, n, 29);
flur=f;
flurstueck=st;
groesse=g;
sachwert=static_cast<float>(g)*180;
}
void Grundstueck::zeigeGrunddaten() const {
cout << "\n" << "Gemarkung: " << gemarkung << "\n"
<< "Flur: " << flur << "\n"
<< "Flurstueck: " << flurstueck << "\n"
<< "Groesse: " << groesse << "\n"
<< "Wert: " << sachwert;
}
and
// Grundstueck.h (bspl0048.h)
#ifndef _GRUNDSTUECK_
#define _GRUNDSTUECK_
class Grundstueck {
public:
Grundstueck();
~Grundstueck();
void speichereGrunddaten(const char *n,
int f, int st, int g);
void zeigeGrunddaten() const;
private:
char gemarkung[30];
int flur, flurstueck, groesse;
protected:
float sachwert;
};
#endif
I am a total newbie in code::blocks so here is my question:
How can I compile those two file to one .exe file?
I thank you in advance for your time and attention and look forward to your replys.
greetz pisco