Thread: [Dev-C++] Debugging and watch
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Meyrambek J. <mey...@ya...> - 2008-01-20 14:02:17
|
Hi all I want to debug and use watch. But dev cpp is not showing watch. What i must do? --- dev...@li... wrote: > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, > visit > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body > 'help' to > dev...@li... > > You can reach the person managing the list at > dev...@li... > > When replying, please edit your Subject line so it > is more specific > than "Re: Contents of Dev-cpp-users digest..." > > > Today's Topics: > > 1. Translation (Szentpali Janos) > 2. Re: Translation (Wobien) > 3. Re: Translation (Szentpali Janos) > 4. read registry (com1, com7) problem (Jessica > Chen) > 5. how to display the bitmap in win32 opengl? > (Jessica Chen) > 6. Using the serial and the parallel Port of the > Computer > (Abhijeet mishra) > 7. Please forward me Some links (using the serial > and par port ) > (Abhijeet mishra) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 07 Jan 2008 19:32:02 +0200 > From: Szentpali Janos <ia...@ea...> > Subject: [Dev-C++] Translation > To: dev...@li... > Message-ID: <478...@ea...> > Content-Type: text/plain; charset=ISO-8859-2; > format=flowed > > Hi, > > I am very new to C++. I only did VB programming... > mostly. I am having > some trouble with some C++ code. Could someone help > me understand what > the following means: > > --- start --- > > typedef DWORD(*FUNCPTR)(BYTE); > > DWORD ulWorkRandomNum; > char *arr; > int nIndex; > > ... > > arr [2 * nIndex] = 'A' + (((char *) &ulRandomNum) > [nIndex] & 0x0f); > > --- end --- > > I am having trouble with "translating" > (understanding) the > > ((char *) &ulRandomNum) [nIndex] > > part. I mean [nIndex] referes to the elemnt of which > array :O > > -- > Szentp?li J?nos > > > > > ------------------------------ > > Message: 2 > Date: Mon, 7 Jan 2008 23:07:00 +0100 > From: "Wobien" <roo...@pl...> > Subject: Re: [Dev-C++] Translation > To: "Szentpali Janos" <ia...@ea...>, > <dev...@li...> > Message-ID: <000301c85179$a07d2d70$9700000a@dell> > Content-Type: text/plain; format=flowed; > charset="iso-8859-2"; > reply-type=original > > &ulRandomNum is the adress of ulRandomNum (You don't > give us the definition > of it, so don't know what it is) > (char *) is a cast. It makes the adress of > ulRandomNum be read as a char > array. So ((char *) &ulRandomNum) [nIndex] > will give you a byte of the binary code of > ulRandomNum. > Wobien > > ----- Original Message ----- > From: "Szentpali Janos" <ia...@ea...> > To: <dev...@li...> > Sent: Monday, January 07, 2008 6:32 PM > Subject: [Dev-C++] Translation > > > Hi, > > I am very new to C++. I only did VB programming... > mostly. I am having > some trouble with some C++ code. Could someone help > me understand what > the following means: > > --- start --- > > typedef DWORD(*FUNCPTR)(BYTE); > > DWORD ulWorkRandomNum; > char *arr; > int nIndex; > > ... > > arr [2 * nIndex] = 'A' + (((char *) &ulRandomNum) > [nIndex] & 0x0f); > > --- end --- > > I am having trouble with "translating" > (understanding) the > > ((char *) &ulRandomNum) [nIndex] > > part. I mean [nIndex] referes to the elemnt of which > array :O > > -- > Szentp?li J?nos > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: > http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > ------------------------------ > > Message: 3 > Date: Tue, 08 Jan 2008 00:24:17 +0200 > From: Szentpali Janos <ia...@ea...> > Subject: Re: [Dev-C++] Translation > To: Wobien <roo...@pl...>, > dev...@li... > Message-ID: <478...@ea...> > Content-Type: text/plain; charset=ISO-8859-2; > format=flowed > > Wobien ?rta: > > &ulRandomNum is the adress of ulRandomNum (You > don't give us the > > definition of it, so don't know what it is) > > (char *) is a cast. It makes the adress of > ulRandomNum be read as a > > char array. So ((char *) &ulRandomNum) [nIndex] > > will give you a byte of the binary code of > ulRandomNum. > > Wobien > > > > ----- Original Message ----- From: "Szentpali > Janos" <ia...@ea...> > > To: <dev...@li...> > > Sent: Monday, January 07, 2008 6:32 PM > > Subject: [Dev-C++] Translation > > > > > > Hi, > > > > I am very new to C++. I only did VB programming... > mostly. I am having > > some trouble with some C++ code. Could someone > help me understand what > === message truncated === ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |
From: shan c. <sha...@ya...> - 2008-01-20 16:46:09
|
Use F8 to debug and F7 to watch execution per line.In the left side Project/class browser right click and select "add watch" enter the variable name in the pop window and click OK add as much as variable your program has. Happy Debugging!!!! Meyrambek Japarov <mey...@ya...> wrote: Hi all I want to debug and use watch. But dev cpp is not showing watch. What i must do? --- dev...@li... wrote: > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, > visit > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body > 'help' to > dev...@li... > > You can reach the person managing the list at > dev...@li... > > When replying, please edit your Subject line so it > is more specific > than "Re: Contents of Dev-cpp-users digest..." > > > Today's Topics: > > 1. Translation (Szentpali Janos) > 2. Re: Translation (Wobien) > 3. Re: Translation (Szentpali Janos) > 4. read registry (com1, com7) problem (Jessica > Chen) > 5. how to display the bitmap in win32 opengl? > (Jessica Chen) > 6. Using the serial and the parallel Port of the > Computer > (Abhijeet mishra) > 7. Please forward me Some links (using the serial > and par port ) > (Abhijeet mishra) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 07 Jan 2008 19:32:02 +0200 > From: Szentpali Janos > Subject: [Dev-C++] Translation > To: dev...@li... > Message-ID: <478...@ea...> > Content-Type: text/plain; charset=ISO-8859-2; > format=flowed > > Hi, > > I am very new to C++. I only did VB programming... > mostly. I am having > some trouble with some C++ code. Could someone help > me understand what > the following means: > > --- start --- > > typedef DWORD(*FUNCPTR)(BYTE); > > DWORD ulWorkRandomNum; > char *arr; > int nIndex; > > ... > > arr [2 * nIndex] = 'A' + (((char *) &ulRandomNum) > [nIndex] & 0x0f); > > --- end --- > > I am having trouble with "translating" > (understanding) the > > ((char *) &ulRandomNum) [nIndex] > > part. I mean [nIndex] referes to the elemnt of which > array :O > > -- > Szentp?li J?nos > > > > > ------------------------------ > > Message: 2 > Date: Mon, 7 Jan 2008 23:07:00 +0100 > From: "Wobien" > Subject: Re: [Dev-C++] Translation > To: "Szentpali Janos" , > > Message-ID: <000301c85179$a07d2d70$9700000a@dell> > Content-Type: text/plain; format=flowed; > charset="iso-8859-2"; > reply-type=original > > &ulRandomNum is the adress of ulRandomNum (You don't > give us the definition > of it, so don't know what it is) > (char *) is a cast. It makes the adress of > ulRandomNum be read as a char > array. So ((char *) &ulRandomNum) [nIndex] > will give you a byte of the binary code of > ulRandomNum. > Wobien > > ----- Original Message ----- > From: "Szentpali Janos" > To: > Sent: Monday, January 07, 2008 6:32 PM > Subject: [Dev-C++] Translation > > > Hi, > > I am very new to C++. I only did VB programming... > mostly. I am having > some trouble with some C++ code. Could someone help > me understand what > the following means: > > --- start --- > > typedef DWORD(*FUNCPTR)(BYTE); > > DWORD ulWorkRandomNum; > char *arr; > int nIndex; > > ... > > arr [2 * nIndex] = 'A' + (((char *) &ulRandomNum) > [nIndex] & 0x0f); > > --- end --- > > I am having trouble with "translating" > (understanding) the > > ((char *) &ulRandomNum) [nIndex] > > part. I mean [nIndex] referes to the elemnt of which > array :O > > -- > Szentp?li J?nos > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: > http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > ------------------------------ > > Message: 3 > Date: Tue, 08 Jan 2008 00:24:17 +0200 > From: Szentpali Janos > Subject: Re: [Dev-C++] Translation > To: Wobien , > dev...@li... > Message-ID: <478...@ea...> > Content-Type: text/plain; charset=ISO-8859-2; > format=flowed > > Wobien ?rta: > > &ulRandomNum is the adress of ulRandomNum (You > don't give us the > > definition of it, so don't know what it is) > > (char *) is a cast. It makes the adress of > ulRandomNum be read as a > > char array. So ((char *) &ulRandomNum) [nIndex] > > will give you a byte of the binary code of > ulRandomNum. > > Wobien > > > > ----- Original Message ----- From: "Szentpali > Janos" > > To: > > Sent: Monday, January 07, 2008 6:32 PM > > Subject: [Dev-C++] Translation > > > > > > Hi, > > > > I am very new to C++. I only did VB programming... > mostly. I am having > > some trouble with some C++ code. Could someone > help me understand what > === message truncated === ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users hey man go rocking --------------------------------- Now you can chat without downloading messenger. Click here to know how. |