i am a beginner C++ programmer and i have a couple question about C++. Firstly what are the advantages for use C++,over java and c.
i am a beginner C++ programmer and i have a couple question about C++. Firstly what are the advantages for use C++,over java and c.
I think you should ask what are the advantages of searching the Web and then asking for clarification if needed over just posing a question with no attempt to find out answers for yourself. For example: Java Vs Cpp. Furthermore, your question is more about language comparison than about C++. Do you also know Java and C? If not, many of the concepts and ideas that might be raised in an answer to your question may well be meaningless to you.Originally Posted by mdennis10
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
i actually did but i wanted a professional advice from somebody that actually use the language
would it be beneficial to make c++ my primarily language or would it be better if i invested time learning another language
Nobody here knows. You should know as many languages as possible in order to meet the demands of the software industry, though. You only meet purists on the internet.
My professional advice is: learn what you would like to learn, program what you would like to program, have fun! The advantages and disadvantages of a programming language vis-a-vis another programming language does not matter when you are a student/hobbyist setting out to learn a programming language since there are no business requirements to consider: no job => no best tool for the job. (Okay, advantages in ease of learning does matter for a person's first programming language, but with good material to learn from it is not a terribly big issue.)Originally Posted by mdennis10
It would be beneficial to make a widely used natural language such as English your primary language.Originally Posted by mdennis10
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
C++ is more modern and powerful than C. C++ allows two programming paradigms that C does not: object oriented programming and generic programming. OOP is the aggregation of related information and functions to facilitate an intuitive program model. Generic programming is the aggregation of similar tasks that could be done to any kind of data.
C++ is more powerful than Java. C++ largely has the same high level capabilities to java, but also allows extremely low level control for bottle neck performance situations. C++ also has an extensive capability for metaprogramming, which briefly described is the ability to write a program that writes a program. This extra level of indirection can be useful in some cases.
Java has a number of advantages over C++ however. It's simpler, because it lacks pointers, which is a rather involved concept from C/C++, and employs garbage collection. It also has a massive standard library with networking and graphical interface. C++ does have the same capabilities as Java in this regard, but there is less standardization, which means there's no one common library that everyone uses.
C's only advantage over C++ is that it's simpler. However, C, not C++, is the de-facto language for embedded programming.
As a first language I would always recommended Java over either of the other two, because it's modern and has a faster learning curve. However, of all languages, I recommend Python.
It is too clear and so it is hard to see.
A dunce once searched for fire with a lighted lantern.
Had he known what fire was,
He could have cooked his rice much sooner.
It is almost as if you are implying that C++ isn't a modern language, King Mir, even though I understand what you mean.
Also consider that C++ has a modern feature which all other "modern languages" seemingly lacks: deterministic destruction and RAII.