RESPONDER UNA PREGUNTA

Si para responder la pregunta, crees necesario enviar un archivo adjunto, puedes hacerlo a traves del correo [email protected]

    Pregunta:  67479 - PROBLEMA CON STRUCT C++
Autor:  Fernando
Que tal!, tengo un código de una estructura para posicionar luego en coordenas, lo obtuve de un juego.
Mi problema va en que lo quiero tener el archivo en .C y no en .CPP
pero si le cambio la extensión esa estructura no funciona.

#include <stdio.h>
#include <dos.h>

struct punto
{
int ix,iy;
};

main()
{
punto tab[9]; //Aqui es el error

tab[0].ix=36;
tab[0].iy=11;

tab[1].ix=40;
tab[1].iy=11;

tab[2].ix=44;
tab[2].iy=11;

tab[3].ix=36;
tab[3].iy=15;

tab[4].ix=40;
tab[4].iy=15;

tab[5].ix=44;
tab[5].iy=15;

tab[6].ix=36;
tab[6].iy=19;

tab[7].ix=40;
tab[7].iy=19;

tab[8].ix=44;
tab[8].iy=19;
}


Nombre
Apellidos
Correo
Comentarios