delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/14/13:37:07

From: "Regis DUPUY" <regis DOT dupuy AT wanadoo DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: Debugging Rhide C++ Struct
Date: Sun, 14 Nov 1999 19:05:58 +0100
Organization: Wanadoo, l'internet avec France Telecom
Lines: 39
Message-ID: <80mtke$baf$1@wanadoo.fr>
NNTP-Posting-Host: limoges-8-49.abo.wanadoo.fr
X-Trace: wanadoo.fr 942602702 11599 164.138.208.49 (14 Nov 1999 18:05:02 GMT)
X-Complaints-To: abuse AT wanadoo DOT fr
NNTP-Posting-Date: 14 Nov 1999 18:05:02 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi
The little program below wich is a c++ example for struct compile
and run but I can't trace it with F7 (rhide debugger)
it jumps over the first line  :  point a,b;
then it trace back ,then it stay at the same place and it ends
is it impossible to debug C++ program with rhide if those programs
have struct definitions ?

 #include <iostream.h>
 struct point


   int x;
   int y;
   void initialise(int,int);
   void deplace(int,int);
   void affiche();
 };
 void point::initialise(int abs,int ord)
 {x=abs;y=ord;}
 void point::deplace(int dx,int dy)
 {x+=dx;y+=dy;}
 void point::affiche()
 {cout <<"je suis en "<<x<<" "<<y<<"\n";}
 int main()


   point a,b;
   a.initialise(5,2);
   a.affiche();
   a.deplace(-2,4);
   a.affiche();
   b.initialise(1,-1);
   b.affiche();
   return 0;
 }



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019