Erreur programme en c++! !!!!!

Bonjour,
J'aimerai bien savois pk ce programme ne marche pas, ..... je n'ai pas su corriger les erreurs qui s'affichent. merci bien de vouloir m'aider :)

#include<iostream.h>
#include<conio.h>
class Point
{
int x, y;

Public : Point () {x=0; y=0;}
Point (int abs) {x=abs; y=abs;}
Point (int abs, int ord) {x=abs; y=ord;}
void affiche();
};

void Point::affiche()
{cout<<"je suis en "<<x<<" "<<y<<endl;}

void main()
{
Point a, b(5);
a.affiche();
b.affiche();
Point c(15,24);
c.affiche();
getch();
}
Configuration: Windows Vista
Internet Explorer 7.0

3 réponses

  1. pourkoi tu as mis :
    Public : Point () {x=0; y=0;}
    est ce que tu as une erreur à la compilation ou à l'execution?
    0
    1. J'ai des erreurs au niveau de la compilation

      et j'ai mis :
      Public : Point () {x=0; y=0;}
      juste pour m'exercer a utiliser les fonctions membres inline

      Point () {x=0; y=0;} /// c'est un constructeur
      0
      1. J'ai des erreurs au niveau de la compilation

        et j'ai mis :
        Public : Point () {x=0; y=0;}
        juste pour m'exercer a utiliser les fonctions membres inline

        Point () {x=0; y=0;} /// c'est un constructeur
        0