C++ syntax: Difference between revisions

Content deleted Content added
Line 9:
== Basics ==
Much of C++'s syntax aligns with [[C syntax]], as C++ provides backwards compatibility with C.
 
The C++ [["Hello, World!" program]] program is as follows[https://en.cppreference.com/w/cpp/io/println]:
<syntaxhighlight lang="cpp">
import std;
 
int main() {
std::println("Hello, world!");
}
</syntaxhighlight>
 
=== Identifier ===