<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Probleme beim einbinden von headern]]></title><description><![CDATA[<p>Hi, habe einige Beispiele gefunden und auf meines angewandt, kann aber den Fehler nicht finden. Bestimmt nur was kleines, bekomme immer den Fehler Schachbrett not declaratet in the scope...</p>
<p>Schachbrett.h</p>
<pre><code>#include &lt;iostream&gt;

using namespace std;
#define MARK (0x08)

//*******************Schachbrett************************************************************************************************************************************************

class SchachBrett{
    private:
        //0-2. Figuren Typ
        /*  Leer=000
            Bauer=001
            Turm=010
            Springer=011
            Läufer=100
            Dame=101
            König=110
        */
        //3.Bit Mauschaft 1=Schwarz
        char spieler;//Wer gerade dran ist
        //7.Bit Markierung für mögliche Felder
        char Brett[64];//Brett
        char Brettp[64];//Pseudobrett
        char ges[13];//geschlagene Units(0-5:weiß 6:frei 7-12:schwarz)(Bauer,Turm,Springer,Läufer,Dame,König)(theoretisch sind 5,6,12 nie benutzt)
        char aktiv;//welches Feld ausgewählt wurde

        int marki(int *sch,int aus,int auso);
        int Schach(int spieler,char Brett[64]);
        int Schachmat(int spieler,char Brett[64]);
        int felderMarkieren(int aus,int sch,char Brett[64],int spieler);
        void set(int aus,char Brett[64]);

    public:
        SchachBrett();
        void auswahl(int aus);
        char get(int aus);
        void reset();
        int wahl();
};
</code></pre>
<p>Schachbrett.cpp</p>
<pre><code>#include &lt;iostream&gt;
#include &quot;adt.h&quot;
using namespace std;
#define MARK (0x08)

int SchachBrett::marki(int *sch,int aus,int auso){
    ...
}

int SchachBrett::Schach(int spieler,char Brett[64]){
    ...
}

int SchachBrett::Schachmat(int spieler,char Brett[64]){
  ...
}

int SchachBrett::felderMarkieren(int aus,int sch,char Brett[64],int spieler){
   ...
}

void SchachBrett::set(int aus,char Brett[64]){
    ...
}

    public:

SchachBrett::SchachBrett(){
    ...
};

void SchachBrett::auswahl(int aus){
    ...
}

char SchachBrett::get(int aus){
    ...
}

void SchachBrett::reset(){
    ...
}

int SchachBrett::wahl(){return 5;}//Wahl (derzeit konstant auf Dame)
</code></pre>
<p>und die main.cpp</p>
<pre><code>#include &lt;iostream&gt;
#include &quot;adt.h&quot;

#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;

#ifdef __APPLE__
#include &lt;OpenGL/OpenGL.h&gt;
#include &lt;GLUT/glut.h&gt;
#else
#include &lt;windows.h&gt;
#include &lt;GL/glut.h&gt;
#endif

using namespace std;

float _angle = 0;            //The rotation of the box
int spieler=0;
int breite=100,hoehe=100;

int collison(int x_mouse, int y_mouse){

    double aspect = double(breite)/double(hoehe);
    int window_y = (hoehe-y_mouse) - hoehe/2;
    double norm_y = double(window_y)/double(hoehe/2);
    int window_x = x_mouse - breite/2;
    double norm_x = double(window_x)/double(breite/2);
    printf(&quot;%d # %d\n&quot;,window_y,window_x);

    float y = 20 * norm_y;
    float x = 20 * aspect * norm_x;

    printf(&quot;%f %f\n&quot;,y,x);

    int i=0;
    while(i*2.4&lt;breite){
        if(2.4*i&lt;x &amp;&amp; 2.4*(1+i)&gt;=x){
            printf(&quot;x:%d  &quot;,i+5);
            break;
        }
        if(-2.4*i&gt;x &amp;&amp; -2.4*(1+i)&lt;=x){
            printf(&quot;x:%d  &quot;,-i+4);
            break;
        }
        i++;
    }

    i=0;
    while(i*2.4&lt;hoehe){
        if(2.4*i&lt;y &amp;&amp; 2.4*(1+i)&gt;=y){
            printf(&quot;y:%d \n&quot;,i+5);
            break;
        }
        if(-2.4*i&gt;y &amp;&amp; -2.4*(1+i)&lt;=y){
            printf(&quot;y:%d \n&quot;,-i+4);
            break;
        }
        i++;
    }

    return -1;
}

//Für die Tastatur und für die Sondertasten auserhalb ascii
void handleKeypress(unsigned char key, int x, int y) {    //The current mouse coordinates
    printf(&quot;%d\n&quot;,key);
	switch (key) {
	    default: printf(&quot;%d\n&quot;,key);break;
		case 27: exit(0); //Exit the program by ESC

	}
}
void processSpecialKeys(int key, int x, int y) {
	switch(key) {
		case GLUT_KEY_LEFT :
				 break;
		case GLUT_KEY_RIGHT :
				 break;
		case GLUT_KEY_UP :
				 break;
        case GLUT_KEY_DOWN :
				 break;
	}
}
//Maus
void MeineMausTasten(int button, int state, int x, int y){
    if(state==  GLUT_DOWN){
        switch(button) {
            case GLUT_LEFT_BUTTON :
                 printf(&quot;left&quot;);
                 spieler=(spieler+1)%2;
                 break;
            case GLUT_MIDDLE_BUTTON :
                // printf(&quot;middel&quot;);
                 printf(&quot;%d %d\n&quot;,x,y);
				 break;
            case GLUT_RIGHT_BUTTON :
                 //printf(&quot;right&quot;);
                 //printf(&quot;%d %d\n&quot;,x,y);
                 collison(x,y);
				 break;
        }
    }

}

void initRendering() {
	glEnable(GL_DEPTH_TEST);
	glEnable(GL_LIGHTING);
	glEnable(GL_LIGHT0);
	glEnable(GL_NORMALIZE);
	glEnable(GL_COLOR_MATERIAL);
	glClearColor(0.7f, 0.9f, 1.0f, 1.0f); //Change the background to sky blue
}

void handleResize(int w, int h) {
    breite=w,hoehe=h;
    if(w&lt;h) h=w;
    else w=h;

	glViewport(0, 0, w, h);
	breite=w;
	hoehe=h;
	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();
	gluPerspective(45.0,1, 1.0, 200.0);
	//if(w&lt;h)	gluPerspective(45.0, (float)h/ (float)w, 1.0, 200.0);
	//else gluPerspective(45.0, (float)h / (float)w, 1.0, 200.0);
}

//Draws the 3D scene
void drawScene() {
    float kleinesQuadrat = 1.0f,grosesQuadrat = kleinesQuadrat*8.0f+2.0f;

    //Letztes Blatt löschen
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	glMatrixMode(GL_MODELVIEW);
	glLoadIdentity();

    //Transformation
	glTranslatef(0.0f, 0.0f, -20.0f);

    //Licht setzen
	GLfloat ambientLight[] = {1.0f, 1.0f, 1.0f, 1.0f};
	glLightModelfv(GL_LIGHT_MODEL_AMBIENT, ambientLight);

	//GLfloat lightColor[] = {1.0f, 1.0f, 1.0f, 1.0f};
	//GLfloat lightPos[] = {-4 * kleinesQuadrat, -4*kleinesQuadrat, 0, 1.0f};
	//glLightfv(GL_LIGHT0, GL_DIFFUSE, lightColor);
	//glLightfv(GL_LIGHT0, GL_POSITION, lightPos);

	glRotatef(-_angle, 0.0f, 0.0f, 1.0f);
	glBegin(GL_QUADS);
    //Brett
    glColor3f(0.1f,0.75f,0.3f);
    for(int x=0;x&lt;4;x++){glVertex3f(((x+2)/4)*grosesQuadrat-kleinesQuadrat*4-1,(((x+1)/2)%2)*grosesQuadrat-kleinesQuadrat*4-1,-0.1);}
    //Kästchen
    int Farbe;
    glNormal3f(0.0, 1.0f, 0.0f);
    for(int y=0;y&lt;8;y++){
        for(int x=0;x&lt;32;x++){
            Farbe=(int)((((x)/4)%2+y)%2);
            if(Farbe==0){glColor3f(0.8f,0.75f,0.7f);}
            else {glColor3f(0.3,0.3,0.25);}
            glVertex3f((x+2)/4-kleinesQuadrat*4,((x+1)/2)%2+y-kleinesQuadrat*4,0);
        }
    }

	glEnd();
	glutSwapBuffers();
}

void update(int value) {
	...
}

int main(int argc, char** argv) {
    Schachbrett *Brett;//######################Hier der Fehler
    Brett=new SchachBrett();

	glutInit(&amp;argc, argv);
	glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
	glutInitWindowSize(1000, 1000);

	glutCreateWindow(&quot;Unser Schach Programm v.1&quot;);
	initRendering();

	glutDisplayFunc(drawScene);
	glutReshapeFunc(handleResize);
	glutKeyboardFunc(handleKeypress);
	glutSpecialFunc(processSpecialKeys);
	glutMouseFunc(MeineMausTasten);

	glutTimerFunc(25, update, 0);

	glutMainLoop();
	return 0;
}
</code></pre>
<p>Ist mein erstes OpenGl Projekt und auch das erste im Teamwork, der Code ist also noch ne Optimal, Fehler tauscht immer in der Zeile wo ich ein Objekt der class Schachbrett machen will auf</p>
<p>Danke für eure Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/306905/probleme-beim-einbinden-von-headern</link><generator>RSS for Node</generator><lastBuildDate>Fri, 07 Aug 2026 07:49:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/306905.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Aug 2012 11:10:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme beim einbinden von headern on Fri, 10 Aug 2012 11:10:28 GMT]]></title><description><![CDATA[<p>Hi, habe einige Beispiele gefunden und auf meines angewandt, kann aber den Fehler nicht finden. Bestimmt nur was kleines, bekomme immer den Fehler Schachbrett not declaratet in the scope...</p>
<p>Schachbrett.h</p>
<pre><code>#include &lt;iostream&gt;

using namespace std;
#define MARK (0x08)

//*******************Schachbrett************************************************************************************************************************************************

class SchachBrett{
    private:
        //0-2. Figuren Typ
        /*  Leer=000
            Bauer=001
            Turm=010
            Springer=011
            Läufer=100
            Dame=101
            König=110
        */
        //3.Bit Mauschaft 1=Schwarz
        char spieler;//Wer gerade dran ist
        //7.Bit Markierung für mögliche Felder
        char Brett[64];//Brett
        char Brettp[64];//Pseudobrett
        char ges[13];//geschlagene Units(0-5:weiß 6:frei 7-12:schwarz)(Bauer,Turm,Springer,Läufer,Dame,König)(theoretisch sind 5,6,12 nie benutzt)
        char aktiv;//welches Feld ausgewählt wurde

        int marki(int *sch,int aus,int auso);
        int Schach(int spieler,char Brett[64]);
        int Schachmat(int spieler,char Brett[64]);
        int felderMarkieren(int aus,int sch,char Brett[64],int spieler);
        void set(int aus,char Brett[64]);

    public:
        SchachBrett();
        void auswahl(int aus);
        char get(int aus);
        void reset();
        int wahl();
};
</code></pre>
<p>Schachbrett.cpp</p>
<pre><code>#include &lt;iostream&gt;
#include &quot;adt.h&quot;
using namespace std;
#define MARK (0x08)

int SchachBrett::marki(int *sch,int aus,int auso){
    ...
}

int SchachBrett::Schach(int spieler,char Brett[64]){
    ...
}

int SchachBrett::Schachmat(int spieler,char Brett[64]){
  ...
}

int SchachBrett::felderMarkieren(int aus,int sch,char Brett[64],int spieler){
   ...
}

void SchachBrett::set(int aus,char Brett[64]){
    ...
}

    public:

SchachBrett::SchachBrett(){
    ...
};

void SchachBrett::auswahl(int aus){
    ...
}

char SchachBrett::get(int aus){
    ...
}

void SchachBrett::reset(){
    ...
}

int SchachBrett::wahl(){return 5;}//Wahl (derzeit konstant auf Dame)
</code></pre>
<p>und die main.cpp</p>
<pre><code>#include &lt;iostream&gt;
#include &quot;adt.h&quot;

#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;

#ifdef __APPLE__
#include &lt;OpenGL/OpenGL.h&gt;
#include &lt;GLUT/glut.h&gt;
#else
#include &lt;windows.h&gt;
#include &lt;GL/glut.h&gt;
#endif

using namespace std;

float _angle = 0;            //The rotation of the box
int spieler=0;
int breite=100,hoehe=100;

int collison(int x_mouse, int y_mouse){

    double aspect = double(breite)/double(hoehe);
    int window_y = (hoehe-y_mouse) - hoehe/2;
    double norm_y = double(window_y)/double(hoehe/2);
    int window_x = x_mouse - breite/2;
    double norm_x = double(window_x)/double(breite/2);
    printf(&quot;%d # %d\n&quot;,window_y,window_x);

    float y = 20 * norm_y;
    float x = 20 * aspect * norm_x;

    printf(&quot;%f %f\n&quot;,y,x);

    int i=0;
    while(i*2.4&lt;breite){
        if(2.4*i&lt;x &amp;&amp; 2.4*(1+i)&gt;=x){
            printf(&quot;x:%d  &quot;,i+5);
            break;
        }
        if(-2.4*i&gt;x &amp;&amp; -2.4*(1+i)&lt;=x){
            printf(&quot;x:%d  &quot;,-i+4);
            break;
        }
        i++;
    }

    i=0;
    while(i*2.4&lt;hoehe){
        if(2.4*i&lt;y &amp;&amp; 2.4*(1+i)&gt;=y){
            printf(&quot;y:%d \n&quot;,i+5);
            break;
        }
        if(-2.4*i&gt;y &amp;&amp; -2.4*(1+i)&lt;=y){
            printf(&quot;y:%d \n&quot;,-i+4);
            break;
        }
        i++;
    }

    return -1;
}

//Für die Tastatur und für die Sondertasten auserhalb ascii
void handleKeypress(unsigned char key, int x, int y) {    //The current mouse coordinates
    printf(&quot;%d\n&quot;,key);
	switch (key) {
	    default: printf(&quot;%d\n&quot;,key);break;
		case 27: exit(0); //Exit the program by ESC

	}
}
void processSpecialKeys(int key, int x, int y) {
	switch(key) {
		case GLUT_KEY_LEFT :
				 break;
		case GLUT_KEY_RIGHT :
				 break;
		case GLUT_KEY_UP :
				 break;
        case GLUT_KEY_DOWN :
				 break;
	}
}
//Maus
void MeineMausTasten(int button, int state, int x, int y){
    if(state==  GLUT_DOWN){
        switch(button) {
            case GLUT_LEFT_BUTTON :
                 printf(&quot;left&quot;);
                 spieler=(spieler+1)%2;
                 break;
            case GLUT_MIDDLE_BUTTON :
                // printf(&quot;middel&quot;);
                 printf(&quot;%d %d\n&quot;,x,y);
				 break;
            case GLUT_RIGHT_BUTTON :
                 //printf(&quot;right&quot;);
                 //printf(&quot;%d %d\n&quot;,x,y);
                 collison(x,y);
				 break;
        }
    }

}

void initRendering() {
	glEnable(GL_DEPTH_TEST);
	glEnable(GL_LIGHTING);
	glEnable(GL_LIGHT0);
	glEnable(GL_NORMALIZE);
	glEnable(GL_COLOR_MATERIAL);
	glClearColor(0.7f, 0.9f, 1.0f, 1.0f); //Change the background to sky blue
}

void handleResize(int w, int h) {
    breite=w,hoehe=h;
    if(w&lt;h) h=w;
    else w=h;

	glViewport(0, 0, w, h);
	breite=w;
	hoehe=h;
	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();
	gluPerspective(45.0,1, 1.0, 200.0);
	//if(w&lt;h)	gluPerspective(45.0, (float)h/ (float)w, 1.0, 200.0);
	//else gluPerspective(45.0, (float)h / (float)w, 1.0, 200.0);
}

//Draws the 3D scene
void drawScene() {
    float kleinesQuadrat = 1.0f,grosesQuadrat = kleinesQuadrat*8.0f+2.0f;

    //Letztes Blatt löschen
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	glMatrixMode(GL_MODELVIEW);
	glLoadIdentity();

    //Transformation
	glTranslatef(0.0f, 0.0f, -20.0f);

    //Licht setzen
	GLfloat ambientLight[] = {1.0f, 1.0f, 1.0f, 1.0f};
	glLightModelfv(GL_LIGHT_MODEL_AMBIENT, ambientLight);

	//GLfloat lightColor[] = {1.0f, 1.0f, 1.0f, 1.0f};
	//GLfloat lightPos[] = {-4 * kleinesQuadrat, -4*kleinesQuadrat, 0, 1.0f};
	//glLightfv(GL_LIGHT0, GL_DIFFUSE, lightColor);
	//glLightfv(GL_LIGHT0, GL_POSITION, lightPos);

	glRotatef(-_angle, 0.0f, 0.0f, 1.0f);
	glBegin(GL_QUADS);
    //Brett
    glColor3f(0.1f,0.75f,0.3f);
    for(int x=0;x&lt;4;x++){glVertex3f(((x+2)/4)*grosesQuadrat-kleinesQuadrat*4-1,(((x+1)/2)%2)*grosesQuadrat-kleinesQuadrat*4-1,-0.1);}
    //Kästchen
    int Farbe;
    glNormal3f(0.0, 1.0f, 0.0f);
    for(int y=0;y&lt;8;y++){
        for(int x=0;x&lt;32;x++){
            Farbe=(int)((((x)/4)%2+y)%2);
            if(Farbe==0){glColor3f(0.8f,0.75f,0.7f);}
            else {glColor3f(0.3,0.3,0.25);}
            glVertex3f((x+2)/4-kleinesQuadrat*4,((x+1)/2)%2+y-kleinesQuadrat*4,0);
        }
    }

	glEnd();
	glutSwapBuffers();
}

void update(int value) {
	...
}

int main(int argc, char** argv) {
    Schachbrett *Brett;//######################Hier der Fehler
    Brett=new SchachBrett();

	glutInit(&amp;argc, argv);
	glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
	glutInitWindowSize(1000, 1000);

	glutCreateWindow(&quot;Unser Schach Programm v.1&quot;);
	initRendering();

	glutDisplayFunc(drawScene);
	glutReshapeFunc(handleResize);
	glutKeyboardFunc(handleKeypress);
	glutSpecialFunc(processSpecialKeys);
	glutMouseFunc(MeineMausTasten);

	glutTimerFunc(25, update, 0);

	glutMainLoop();
	return 0;
}
</code></pre>
<p>Ist mein erstes OpenGl Projekt und auch das erste im Teamwork, der Code ist also noch ne Optimal, Fehler tauscht immer in der Zeile wo ich ein Objekt der class Schachbrett machen will auf</p>
<p>Danke für eure Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2240653</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2240653</guid><dc:creator><![CDATA[Seppel4]]></dc:creator><pubDate>Fri, 10 Aug 2012 11:10:28 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim einbinden von headern on Fri, 10 Aug 2012 11:17:42 GMT]]></title><description><![CDATA[<p>Seppel4 schrieb:</p>
<blockquote>
<p>der Code ist also noch ne Optimal</p>
</blockquote>
<p>Oh ja!<br />
Du inkludierst doch niergens schachbrett.h</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2240655</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2240655</guid><dc:creator><![CDATA[Jockelx]]></dc:creator><pubDate>Fri, 10 Aug 2012 11:17:42 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim einbinden von headern on Fri, 10 Aug 2012 11:47:49 GMT]]></title><description><![CDATA[<p>mein Fehler adt.h und adt.cpp</p>
<p>so schlimm? ich habe doch aus Beispielen den Code stark übernommen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2240671</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2240671</guid><dc:creator><![CDATA[Seppel4]]></dc:creator><pubDate>Fri, 10 Aug 2012 11:47:49 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim einbinden von headern on Fri, 10 Aug 2012 12:24:31 GMT]]></title><description><![CDATA[<p>Seppel4 schrieb:</p>
<blockquote>
<p>mein Fehler adt.h und adt.cpp</p>
<p>so schlimm? ich habe doch aus Beispielen den Code stark übernommen</p>
</blockquote>
<p>haha^^ coole frage.</p>
<p>Ja das ist schlimm...<br />
ein computer macht genau das was er machen soll, und denkt sich nicht: mh vielleicht meint der depp vor mir ja die andere datei...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2240685</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2240685</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Fri, 10 Aug 2012 12:24:31 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim einbinden von headern on Fri, 10 Aug 2012 12:56:19 GMT]]></title><description><![CDATA[<p>ja ne is klar, die Frage</p>
<p>so schlimm? ich habe doch aus Beispielen den Code stark übernommen bezog sich</p>
<p>nicht auf den Fehler das die Datein anders heißen als wie ich es gepostet habe sondern zur qualität des Codes bezüglich der aussage von Jockelx.</p>
<p>also die Datein heißen adt.c und adt.cpp<br />
die klasse heißt schachbrett</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2240705</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2240705</guid><dc:creator><![CDATA[Seppel4]]></dc:creator><pubDate>Fri, 10 Aug 2012 12:56:19 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim einbinden von headern on Fri, 10 Aug 2012 13:29:11 GMT]]></title><description><![CDATA[<p>Nein, so schlimm auch nicht.<br />
Die printf's sind doof und das using im Header auch.<br />
Und das Schachbrett *Brett; statt Schachbrett Brett.</p>
<p>Hier hast du übrigens Schachbrett statt Schach B rett geschrieben.<br />
Im Orginal auch?</p>
<p>Edit: int* in Funktionssignaturen sind auch eher die Ausnahme.<br />
Tut da nicht eine Referenz?</p>
<p>Edit2: Unnötige globale Variablen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2240712</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2240712</guid><dc:creator><![CDATA[Jockelx]]></dc:creator><pubDate>Fri, 10 Aug 2012 13:29:11 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim einbinden von headern on Fri, 10 Aug 2012 13:41:19 GMT]]></title><description><![CDATA[<p>Die printf's sind doof und das using im Header auch.<br />
--&gt; ja die kommen noch weg<br />
Und das Schachbrett <em>Brett; statt Schachbrett Brett.<br />
--&gt;ok<br />
Hier hast du übrigens Schachbrett statt Schach B rett geschrieben.<br />
Im Orginal auch?<br />
--&gt; das war der Fehler, wusste doch das es was primitives war<br />
Edit: int</em> in Funktionssignaturen sind auch eher die Ausnahme.<br />
Tut da nicht eine Referenz?<br />
--&gt; Jetzt musst du mir mal beim suchen helfen, wo genau?</p>
<p>Edit2: Unnötige globale Variablen<br />
--&gt; noch was was weg kommen wird</p>
<p>Danke für deine Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2240718</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2240718</guid><dc:creator><![CDATA[Seppel4]]></dc:creator><pubDate>Fri, 10 Aug 2012 13:41:19 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim einbinden von headern on Fri, 10 Aug 2012 13:44:45 GMT]]></title><description><![CDATA[<p>Bei</p>
<pre><code class="language-cpp">int SchachBrett::marki(int *sch,int aus,int auso)
</code></pre>
<p>Dazu dann noch ein Punkt: Nichts sagende Variablennamen wie 'sch'</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2240719</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2240719</guid><dc:creator><![CDATA[Jockelx]]></dc:creator><pubDate>Fri, 10 Aug 2012 13:44:45 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim einbinden von headern on Fri, 10 Aug 2012 13:53:24 GMT]]></title><description><![CDATA[<p>die var namen hat mein Kolege gemacht, da dies eine Teamarbeit ist, was die variablen angeht sag ich das ihm auch immer, aber er findet elemente b vom Struct bb immer toll</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2240720</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2240720</guid><dc:creator><![CDATA[Seppel4]]></dc:creator><pubDate>Fri, 10 Aug 2012 13:53:24 GMT</pubDate></item></channel></rss>