Posts

Showing posts with the label CppNotesByBILRED

C++ Prog Lang In A Nutshell VOL #2 Compiled By Bilal Ahmad Khan AKA Mr. BILRED - TechAmbitonX

Image
C++ Notes VOL #2 Released | TechAmbitionX C++ Prog Lang In A Nutshell VOL #2 Compiled by Mr. BILRED (aka Bilal Ahmad Khan) Alhamdulillah! The second volume of my C++ notes is finally released Alhamdulillah After late-night edits and exam pressure (maybe), I’ve put together another handout. Actually, it's my midterm right now... and I thought — why not compile VOL #2? What’s Inside? Functions, UDFs, Pass-by-Value / Reference Searching & Sorting (Linear, Binary, Bubble, Merge etc.) Cheatsheets for quick revision Final thoughts and insights It’s a sidekick, not the entire combo meal. But if you're someone who values conceptual clarity over technical jargon , this might just help you out! 📥 Visit GitHub 📥 Drive Download

C++ Prog Lang In A Nutshell VOL #2 Compiled By Bilal Ahmad Khan AKA Mr. BILRED - TechAmbitonX

Image
C++ Notes VOL #2 Released | TechAmbitionX C++ Prog Lang In A Nutshell VOL #2 Compiled by Mr. BILRED (aka Bilal Ahmad Khan) Alhamdulillah! The second volume of my C++ notes is finally released Alhamdulillah After late-night edits and exam pressure (maybe), I’ve put together another handout. Actually, it's my midterm right now... and I thought — why not compile VOL #2? What’s Inside? Functions, UDFs, Pass-by-Value / Reference Searching & Sorting (Linear, Binary, Bubble, Merge etc.) Cheatsheets for quick revision Final thoughts and insights It’s a sidekick, not the entire combo meal. But if you're someone who values conceptual clarity over technical jargon , this might just help you out! 📥 Visit GitHub 📥 Drive Download

1D & 2D Arrays in C++ ProgLang - Bilal Ahmad Khan AKA Mr. BILRED - TechAmbitionX

Image
1D & 2D Arrays - TechAmbitionX Understanding 1D and 2D Arrays Arrays are like containers that hold multiple values. Dusray alfaaz mein, An array is similar to a variable, but instead of storing a single value, it holds multiple values of the same type. These values are stored in consecutive memory locations. Let's dive into 1D and 2D arrays ! 1D Arrays A 1D (one-dimensional) array is like a simple list of values stored in memory. Example: // 📂 This File can also be accessed through: https://github.com/BilalAhmadKhanKhattak/CppNotes/blob/main/Arrays/1dArray.cpp // find the max in 1D array..... o bhai sab! #include using namespace std; int main() { int arr[5] = {23,4,12,6,64}; // This is what we call 1D array int maxNum = arr[0]; // for now, I'm gonna set it to 23 (just for now) watch and learn // I'll use loop to find the max in the array. Loops through the a...

C++ escape sequences with clear examples and outputs - Compiled By Bilal Ahmad Khan AKA Mr. BILRED

Image
C++ Escape Sequences: The Guide C++ Escape Sequences: The Guide Introduction When writing C++ programs, you often need to include special characters that can't be typed directly. This is where escape sequences come in handy! They allow you to insert control characters, special symbols, and formatting into your output. In this guide, we’ll explore all C++ escape sequences with examples. What Are Escape Sequences? Escape sequences in C++ are special characters preceded by a backslash ( \ ). They help in formatting text output, inserting special characters, and managing control characters. List of C++ Escape Sequences Escape Sequence Meaning Simple Explanation Example Output \a Alert (bell sound) Makes a beep sound in the terminal. 🔊 (if sound is enabled) ...

C++ Arrays Explained: Syntax, Examples & Theory | Compiled By Bilal Ahmad Khan AKA Mr. BILRED | CppNotes

Image
Arrays in C++ – Easy Explanation with Examples Understanding Arrays in C++ – Easy Guide for Beginners By Bilal Ahmad Khan AKA Mr. BILRED Asking Positively! Have you ever wondered WHY SHOULD WE EVEN USE ARRAYS? Like, WHY? Look Arrays help programmers store and manage multiple values efficiently. This guide explains arrays in C++ with simple examples. 📌 What is an Array in C++? An array is a collection of similar data types stored in a single variable. Instead of creating multiple variables, an array lets us store multiple values in one place. In "mere walay alfaaz", Agar aap chaahty ho aap ziada saari values store karo, to kia phir har dafa variables define karty raho gy? NAHI Na! Phir isko solve karna he arrays k zariye! But first, understand its basic syntax Basic SYNTAX Of Arrays data_type array_name[size]; ✅ Example: int numbers[5] = {10, 20, 30, 40, 50}; cout 📌 Importance; Why Do We Use Arrays? 🔹 Saves Space: No need to create separat...

Types Of Errors In C++ Programming - Programming Basics - Bilal Ahmad Khan AKA Mr. BILRED

Image
Types Of Errors In C++ Programming - CppNotes - Basic Knowy Introduction Errors in C++ programming, Aah! I guess every programmer faces them. But, There are some types of errors in programming, and understanding different types of errors might help in debugging and improving code efficiency. In C++, errors can be classified into three main types: Syntax Errors (Compile-Time Errors) Logical Errors Runtime Errors (Exceptions) We’ll go through each of them one by one! 1.      Syntax Errors (Compile-Time Errors) A syntax error occurs when the code does not follow the rules of the C++ language. These errors are detected by the compiler before the program runs #include <iostream> using namespace std ; int main () {     cout << "Hello, World!"  // Missing semicolon     return 0 ; } Error: expected ';' before 'return' Fix: Add a semicolon at the end of the cout statement.   2. ...