From the course: C++ Essential Training
Unlock the full course today
Join today to access over 24,000 courses taught by industry experts.
Anatomy of a C++ program - C++ Tutorial
From the course: C++ Essential Training
Anatomy of a C++ program
- [Instructor] A C++ Program is basically a collection of statements and expressions usually organized into functions and classes. In this lesson, I'll show you the general anatomy of a C++ Program. Please understand that this is not exhaustive, there are many other elements that may be involved in a C++ Program, this is just the basics and there's no need to pay too much attention to the detail, we'll go over each of these concepts in more detail throughout the course. For now, it's just important that you have a general overview of how these things work. Here is a simple Hello World in C++. You'll find this code in chapter two of your exercise files as hello.cpp, whitespace is any characters that are normally invisible, including new lines, spaces, and tabs. Whitespace is mostly ignored in C++, one notable exception is when a space is necessary to distinguish between two words or tokens. For example, the space between…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.