take U forward
Introduction
Welcome to my channel! I go by the name Striver in the programming
community, and I run a full-fledged interview preparation website called
Take You Forward. If you have 3-6 months to prepare for interviews, I
highly recommend checking out my Striver's SD sheet, which contains 191
curated problems to help you master your data structures and algorithms
concepts. If you're a beginner, you can also check out my Striver's A to Z
DSA course or sheet, which covers 455 steps and includes videos for all the
hard topics. In this video, we'll be covering step 1.1, "Things to Know in
C++, Java, Python, or Any Language", which is the first step in learning
data structures and algorithms.
Before we dive in, I want to mention two important points. First, please
watch the video until the end, even if you already have knowledge of C++,
because I'll be covering some interesting things you might not know.
Second, when you're learning something for the first time, don't get too
bogged down in the details. You'll learn everything in depth as you
progress from beginner to intermediate to advanced.
Skeleton of C++ Code
We'll start by discussing the skeleton of C++ code, which stays constant
across all the programs you'll write in C++. It includes the following
elements:
#include directive for libraries
int main() function
return 0; statement
To use a library in C++, you simply need to #include it. For example, to
use input/output functions, you would include the <iostream> library.
You don't need to know what's inside the library, just that it allows you to
take input and produce output.