![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |
| ||||
| I would recommend accelerated C++ to get you going, its a good book and explains things well, i will talk to you on msn later and give you some extra things ![]() |
| The Following User Says Thank You to Lee For This Useful Post: | ||
HelloWorld (07-17-2007) | ||
| |||
| Transitioning from Java to C++ is a bit difficult for some people. The one thing that I wish C++ had that Java has is the toString() method. Though it isn't very hard to convert from an integer to a std::string in C++, it would be nice to have. Also, while (memory) pointers are useful in C++, they can be a bit of a pain too. Bad pointer arithmetic is easily one of the hardest bugs to find without a debugger to track what is stored in different variables. To make a long story short, the languages are not really comparable. They make use of different technologies and are completely different languages. You can learn both and after you do, that is when you need to be your own judge. |
| The Following User Says Thank You to rpgfan3233 For This Useful Post: | ||
HelloWorld (07-17-2007) | ||
| |||
| Either one works since the language isn't hard to learn. It is learning the features of the language as well as how to use them to your advantage that is difficult. __________________ "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off." -- Bjarne Stroustrup, creator of what is now known as C++ For more quotes by Bjarne Stroustrup, check out http://www.research.att.com/~bs/bs_faq.html#really-say-that. |
| ||||
| Quote:
Edit: I'm also wondering, what's the advantages of C++ than other languages? I haven't things in mind that there's an application that can be created with C++ and not with Java. But for some reason, these companies are looking to those who also understand C++ (or C#) but I think C++ is the core of everything... Last edited by HelloWorld : 07-17-2007 at 08:44 AM. |
| |||
| Quote:
Also, the main advantage of C++ is a balance between a fairly rapid development process and run time. With Java, for example, the Java Virtual Machine takes up memory itself. Then you have the program that you created taking up memory as well, not to mention the processor work for them both. Java is a wonderful language, but those few things can take time that could have been used when compiled to native code rather than Java bytecode. C# as well as other .NET languages, need the .NET framework to even run. As a result, hidden inside your compiled executable is code that looks for the .NET framework before starting the actual program. Not a bad thing, right? Well, consider the fact that because it needs the .NET framework, the program's function calls are really just the top layer of the program. The layer underneath is the .NET framework. In order for them to work together, they have to be able to communicate. Then the .NET framework has to talk to the operating system. That's 3 layers, just like Java (program => JVM => OS). C++ (and C) only require 2 layers - program => OS. I'm simplifying things a bit, of course, as there are many other layers like shared/dynamic libraries (.dll in Windows, .so in *nix environments) unless you compile with only static libraries (.lib for Visual Studio, .a for archived libraries - *nix environments, used with gcc on Windows), in which case the necessary code is just stored in your executable itself, if I recall correctly. C# is rather popular for some reason, though I'm not sure why. Personally, I think it takes a LOT from Java and then rips it to shreds while adding C and C++ things. However, that's just my opinion. Anyway, that's off-topic, so I don't think it should be discussed here. ![]() __________________ "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off." -- Bjarne Stroustrup, creator of what is now known as C++ For more quotes by Bjarne Stroustrup, check out http://www.research.att.com/~bs/bs_faq.html#really-say-that. |
| The Following User Says Thank You to rpgfan3233 For This Useful Post: | ||
HelloWorld (07-17-2007) | ||
| |||
| Quote:
As far as the .NET Framework being the same as the JVM, the idea is similar. That's all though. The idea of a JVM is to provide a protection from harming your computer when you perform "unsafe" operations. The idea of the .NET Framework is to provide a common API for all of the .NET languages. However, because converting from the .NET Framework code to the actual code already existing as a part of the OS is a nearly insane thought, a bit of extra code is inserted into your compiled application to search for the appropriate version of the .NET Framework. This way, it eliminates the need for a ".NET Virtual Machine", and you can know that your application doesn't lose much time. __________________ "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off." -- Bjarne Stroustrup, creator of what is now known as C++ For more quotes by Bjarne Stroustrup, check out http://www.research.att.com/~bs/bs_faq.html#really-say-that. |
| The Following User Says Thank You to rpgfan3233 For This Useful Post: | ||
HelloWorld (07-17-2007) | ||
![]() |
| Thread Tools | |
| Display Modes | |
| |