[Dev-C++] RES: RES: Question about software design
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <and...@su...> - 2007-11-21 11:18:48
|
I understood that you are asking about the advances C++ can give us in these aspects, right? My interest is to focus the code only in ANSI C for some reasons. One of them is to put the same code in a C-microcontroler, like PIC16F877, with a minimum level of modification. But, let me make one question related to this: I´ve read here that the free() command isn´t necessary, is it? At the end of the execution of the program all the dynamic memory requested is released automatically. Is that true? Regards Andre -----Mensagem original----- De: Rafael Menezes [mailto:so...@gm...] Enviada em: quarta-feira, 21 de novembro de 2007 01:18 Para: André Macário Barros Cc: Lista do Dev-C++ Assunto: Re: [Dev-C++] RES: Question about software design Sorry Chris.... So.... you just don't like to use new and delete, correct? That isn't the ready-to-go way to alloc memory, use for any time and free as you wish, in c++ (I use that all the time. Truly, I don't use static variables anymore, in C and C++.)? (same is true to c with free and calloc). This approach can be very useful if you are not interested in reinvent the wheel (Like proof of concept and other study cases.) -- Regards Rafael Menezes No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.2/1142 - Release Date: 20/11/2007 17:44 |