Posts

Showing posts from February, 2025

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...

Linear Circuit Analysis: Key Formulas for Resistors, Capacitors, and More

Image
Essential Circuit Analysis Formulas ⚡ Essential Circuit Analysis Formulas⚡ 📌 Basic Electrical Formulas Category Formula Notes Ohm’s Law V = IR Relates voltage, current, and resistance Power Formula P = VI = I²R = V²/R Different power forms using Ohm’s law 🔥 Resistors & Capacitors Category Formula Notes Resistors in Series R eq = R 1 + R 2 + … Total resistance adds up Resistors in Parallel 1/R eq = 1/R 1 + 1/R 2 + … Reciprocal sum for parallel resistance Capacitors in Series 1/C eq = 1/C 1 + 1/C 2 + … Opposite of resistors Capacitors in Parallel C eq = C 1 + C 2 + … Direct sum for parallel capacitors ⚙️ Inductor Formulas Category Formula Notes Inductors in Series L eq = L 1 + L 2 + … Same as resistors in series Inductors in Parallel 1/L eq = 1/L 1 + 1/L 2 + … Same as resistors in parallel Energy Stored in Inductor W = (1/2) L i² Energy stored in a magnetic field RL Time Cons...

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. ...

The WRAP Model: A Framework for Effective Decision-Making - EnglishNotesByBilred

Image
The WRAP Model: A Smarter Approach to Decision-Making The WRAP Model , developed by Chip and Dan Heath , provides a structured framework for making better, more rational decisions by overcoming common cognitive biases . It helps individuals and organizations move beyond narrow thinking, emotional impulses, and overconfidence to make choices that lead to better long-term outcomes . WRAP Model - Four Steps to Better Decision-Making Widen Your Options People often get stuck in narrow thinking, like "either/or" choices. Solution: Look for multiple alternatives instead of just one. Example: Instead of asking, "Should I quit my job?" , consider "What are different ways I can improve my job situation?" Reality-Test Your Assumptions We tend to seek information that confirms our beliefs (confirmation bias). Solution: Test your assumptions by gathering evidence that challenges your thinking. Ex...