- 3
is there a big difference between c++ and other languages?
7 ответов
+ 2
No, all languages are equal and you're a codist if you disagree.
* That's sarcasm.
5 seconds websearch "C++"
+ 1
I recommend trying to learn C# or Java afterwards.
But HTML and JavaScript is also a ton of fun!
+ 1
a lot of difference...
a biggest difference is memory management...
like in c++ you have to take care of memory management but in Python it is automatic. you don't have to worry about memory management in python
+ 1
Read about "del" keyword in Python @Sonu
0
that's why I guess there is nothing like pointer in Python
0
Primary differences:
1) Purpose/features
2) Syntax (question answered)
Purpose/features: That kinda says it. Some languages like C were intended for portability (in those days) and small footprint. Others like Java were a modern answer to today's portability by targeting virtual platform. Then you got general-purpose languages like C++ which you can do anything with, but often the hard way. More modern solutions to portability with less overhead (than other interpreted languages) was Python. Python is interpreted but modules can be written in C, compiled for the target and functions exposed to Python. Of course Python was designed to be an "easy" and quick to develop cross-platform, multi-paradigm language, focused on readability but it's kinda not easy. It's still quicker to write stuff in, but fails against C on being user-friendly. Finally, you got the web stuff. It's a mix of markup like HTML to more programming language -alike stuff such as JavaScript. These are purposed to serve web content though some game engines support JavaScript. Please note that JavaScript is not Java.
Syntax. Well we'll start at C. C++ was born of C. So was Java. JavaScript was kinda Java-inspired. HTML is its own beast. C# seems closer to Java than anything else, but with some C++ isms. I hate C# so I haven't looked into it that deeply. Python is actually quite close to BASIC and BASH, but with some C isms like casting. Examples:
Python:
a = 5
if a > 1:
print("a is gt 5")
print("Resume program")
C/C++/Java:
int a = 5;
if (a > 5) {
esotericOut("a is gt 5");
}
esotericOut("Resume app");
Python clearly wins in simplicity, but C languages are more organized. This brings us back to point 1: Purpose. In C++ you get more flexibility at the cost of more "effort" where Python has lookup tables written into the syntax. Actually Python has the edge over most if not all syntactically, but that makes it a bigger language and tougher to learn (though everyone insists it's easy).
0
del delete the reference value of the variable in python but after deleting these can't be called.