YouTip LogoYouTip

C++ Tutorial - Getting Started

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
← C++ Classes and InheritanceC Functions and Structures β†’