Hello World
#include <iostream>
using namespace std;
int main() {
cout << "Hello, World!" << endl;
return 0;
}
Key Differences from C
- Classes and objects
- References (&)
- Templates
- STL (Standard Template Library)
Summary
- C++ adds OOP and generics to C
- Use cin/cout for I/O
YouTip