Re: why does this happen?
From: Barry Schwarz (schwarzb_at_deloz.net)
Date: 03/30/05
- Previous message: wwwolf: "How do I do something every x increment in time?"
- In reply to: Thomas Matthews: "Re: why does this happen?"
- Next in thread: hk_mp5kpdw: "Re: why does this happen?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 29 Mar 2005 17:07:23 -0800
On Tue, 29 Mar 2005 20:00:31 GMT, Thomas Matthews
<Thomas_MatthewsSpamBotsSuck@sbcglobal.net> wrote:
>Billy Patton wrote:
>
>> First I'm trying to convert K lines of c code to c++, in baby steps.
>>
>> I've written a small example of something I'm trying to do.
>> #include <string>
>For using malloc(), also:
> #include <stdlib.h>
>That way, you won't have to cast the output.
>{You can also include <cstdlib> }
In C++, the cast is mandatory.
Regardless, failing to have a valid prototype in scope for malloc
leads to undefined behavior.
<<Remove the del for email>>
- Previous message: wwwolf: "How do I do something every x increment in time?"
- In reply to: Thomas Matthews: "Re: why does this happen?"
- Next in thread: hk_mp5kpdw: "Re: why does this happen?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|