Skip to main content

Why C++, when python is much easier?

Python is the easiest programming language to date because its syntax is simple to learn and understand, but why is there a need to learn C++?

C++ is a mid-level language as it was developed in 1979 after C. C++ is an extended version of C, where '++' is an increment.  C++, being close to the hardware of the computer, is irreplaceable. It is highly in demand than any other language. You don't need to learn C if you want to learn C++. You can understand the architecture of the computer hardware. It is the most widely used language for game development, applications development, and rendering engines.


Programming Languages
Languages-Pixabay



Python can be used like an object-oriented language but C++ is much more versatile and powerful. Moreover, the main thing which matters is the logic of the program. The logic in both of these languages depends upon the programmer.

Let's see the difference between the languages with an example.
Python
Python-Pixabay

Writing Hello World! Program in Python:


print ('Hello World!')
C++
C++ -Pixabay

Writing Hello World! program in C++:

1- #include <iostream>
2- using namespace std;
3- void main ()
4- {
5-          cout<<"Hello World!";
6- }

In python, we just give the command to the computer without understanding the main process the computer has to do.

Whereas, in C++ we include library functions and header files to understand the main working of the computer. If we haven't included the first two lines in the program, we would have been met with an error. iostream is a library having the compile command. Std is a standard function of taking the input and displaying the output. If we skip the 2nd line of the program, we would have written std::cout instead of cout only, to avoid errors.

C++ provides better job opportunities and high salary. Its main quality is that it's irreplaceable so that the most popular and heavy sites like Facebook, Amazon, Adobe, and Autodesk are C++ centric products.

C++ can be hard and cannot be learned in a day. On the other hand, python is way too easy and its syntax can be learned in minutes. Python may work in situations where C++ is hard.

I recommend learning C++ because when you learn this particular language, python can be learned in minutes if you need to learn. Logic depends upon the user but the thing which differentiates any language from another language is its syntax.

That's all folks. Feel free to comment.



Comments

Post a Comment

Popular posts from this blog

CEME NUST, another aspect of story....

    There has been a rise in the controversy that the students of the College of Electrical and Mechanical Engineering, NUST are not treated nicely. However, I can assure that there is no other institution in Pakistan which can provide a healthy and grooming environment for the freshmen. They may provide you the advanced technology labs and buildings, but as a matter of fact, they will not train you for your better tomorrow as CEME does.      I am a student of CEME, and most importantly the most junior DE-40 in the CEME. I am against any of the rumors trying to damage the reputation of CEME, NUST. We are taught to be better persons for our society, we are taught to speak in front of public, we are taught to take responsibilities, we are taught to deal with the things calmly, we are taught to respect our elders and peers, we are taught to make decision quickly and precisely, we are taught to lead our life in a disciplined way.     As far as that so-called ragging is concerned,

Imran Khan sends best wishes and prayers to the victims of flood in Kerala, India

        Imran Khan is the most different prime minister of Pakistan, has always shown patriotism for his motherland, love, and affection to the poor and needy. Lamenting on what has happened in Kerala, India, Imran Khan tweeted that he and his countrymen send their best wishes and prayers for the victims of the flood and they might provide the humanitarian assistance if needed.  Imran Khan's tweet . Imran Khan- By Heinrich Böll Stiftung from Berlin, Deutschland        445 deaths were estimated in the flood, 15 people were missing and almost a million evacuated. The property damage was estimated to be the US $3 billion. 35 out of 54 dams were opened for the first time in Indian history. All 14 districts of the Kerala state were in a state of red alert. The Indian government declared it the Level 3 Calamity, Calamity of severe nature. The capacity of dams was full and overflowed. Flood- Pixabay         It was monsoon season, it rained about 257% more than usual, cau

14 ways to develop leadership qualiities

      Being an exceptional leader is something, everybody longs for. Everyone needs leadership qualities, even if they are not supposed to lead, for a better life. Everybody has leadership qualities from their birth, now it depends upon their parents, grandparents, friends and teachers to nurture those qualities. These people can also destroy leadership qualities, depending upon how they treat them. Lets discover, what you need to be an exceptional leader. 1. Confidence       The first and foremost thing you need to be a good leader is to have confidence. You should be able to converse eye to eye with anybody you meet. Always have a smile on your face. You should contradict anyone at anytime if they are wrong. You should know how to be assertive and say 'no'. If you lack some of the qualities mentioned above, you can also visit  How to develop confidence in your personality?  from our blog for more details.  2. Communication skills        Communication skills are a