File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes C / C++ and the fly likes C++: living in a cave Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Languages » C / C++
Bookmark "C++: living in a cave" Watch "C++: living in a cave" New topic
Author

C++: living in a cave

Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
Dear Prentiss,

...I've been living in a cave the last years and completely
missed out on the developments regarding C++.

In a nutshell can you tell us how the C++ landscape looks
like nowadays in comparison to 10 or more years ago?

Cheers,

Gian


"Eppur si muove!"
Prentiss Knowlton
Author
Greenhorn

Joined: Dec 18, 2009
Posts: 7
Dear Gian,

It has been to your benefit to have been in your cave, because C++ has been in a state of considerable change until recently. In a nutshell, automatic memory management provided by "new" as offered by Java and C# is now available in C++ 2008 (also known as managed C++) through the gcnew keyword. In the meantime, the original new and delete keywords still work as they always have in native C++.

The beauty of C++ 2008 compared to other languages is that it remains upward compatible with native (or unmanaged) C++ and legacy C (going back to 1969). This is discussed in chapter 19. When the code you wish to run is unmanaged (from programs written 20 years ago), you can inform the compiler through the #pragma unmanaged directive, and it can run up to twice as fast as managed code.

Cheers,
Pren


Prentiss Knowlton

People don't care how much you know until they know how much you care -- Cavett Robert
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: C++: living in a cave