
Initialize a ten-element integer array and assign each element as i plus 100 using a for loop, then print a columnar output with widths 13 and 7.
Demonstrates bitwise operators in c++, including and, or, xor, and not, plus left and right shifts, with examples using a=60 and b=13 and results like 12, 61, 49, -61.
Demonstrate how the C++ preprocessor hash operator converts a replacement token into a quoted string, and illustrate this with a macro example that outputs a replaced token as a string.
Explore how the C++ preprocessor uses the token-pasting operator ## to concatenate macro arguments into new identifiers, triggering macro substitution and printing values like 100 and helloworld.
Demonstrate the raise function by using a two-argument signal handler to trigger SIGINT when i reaches three, printing results, sleeping one second, and including std.h in a C++ program.
Explore two c++ namespaces with the same function prototype but different bodies, and see how the namespace prints its message. Learn how directives and using namespace affect which function runs.
Learn c++ class member functions by defining a box class with set length, set breadth, set height, and get volume, then create two objects and compute volumes 210 and 1560.
Demonstrates operator overloading in c++, implementing operator plus for a box class to add boxes' dimensions, create a box, and compute its volume, with explicit and implicit calls.
Learn how to join and detach threads in C++ by creating joinable threads, using pthread_create and pthread_join, and ending with pthread_exit.
Explore dynamic memory allocation for two-dimensional arrays in C++. Use a double pointer to allocate rows and columns, input values, and display the memory content.
Explore nested namespaces in C++, defining an outer and inner namespace with the same function prototype, and see how using directives determine which function runs.
Demonstrate multiple inheritance in C++ using shape and paint cost bases; rectangle derives width and height, computes area (width times height) and cost (area times 70).
Define a function template max that takes const references of type T and returns the greater value, illustrated with int, double, and string inputs.
Demonstrates C++ inheritance by defining a base shape with public setters and a derived rectangle, then computing area as width times height, illustrated by 5 and 7 yielding 35.
Demonstrate C++ function call by pointer by passing addresses of two variables to swap them. Observe how the content at those addresses updates to show the swapped results.
Define a box class with public member variables length, breadth, and height, create two objects, and compute and print their volumes using the dot operator.
Explore how call by value passes A and B to the swap function as local copies X and Y, leaving A and B unchanged after return.
Learn how to access structure members in C++ by defining a books struct with title, author, subject, and bookID, initializing with strcpy, and printing with the dot operator.
Explore a C++ class template implementing a generic stack using vector, with push, pop, top, and empty checks, raising out_of_range, and demonstrating template usage with different types.
Explore C++ calling a function by passing A and B to num1 and num2, compare them to determine the maximum, return the result, and trace variables during debugging.
Learn the basic syntax of PHP and create a hello world program using echo or print, with code enclosed by the PHP tags and run from the command line.
Explore PHP file input and output by writing to a file with fopen in write mode, using fwrite, then reading with fopen in read mode and fgets until feof.
Explore PHP arithmetic operators, including addition, subtraction, multiplication, division, modulus, integer division, and increment/decrement, through a practical script using A=42 and B=20.
Explore PHP assignment operators from = to +=, -=, *=, /=, and %= with A=42 and B=20, illustrating how C evolves from 62 to 104, 2604, and 20.
Explore how PHP comparison operators work by comparing two variables, A and B, with values 42 and 20, and observe true or false outcomes for equality, inequality, and relational operators.
Save an HTML file as a PHP file and execute a hello world script on a local web server, using PHP tags, echo, and localhost/hello.php.
Explore web concepts as used in PHP, contrasting client-side JavaScript and server-side PHP, with a localhost example showing how client and server dates can differ in real server scenarios.
Learn how the PHP break statement terminates loops early, including it in a while loop that stops when a random number equals five, demonstrating control flow and iteration termination.
Explore how PHP's continue statement controls loop execution by skipping remaining statements in the current iteration and restarting the next one within a while loop, as demonstrated with random numbers.
Explore the PHP for loop syntax, including initialization, test condition, and increment, with examples: a simple 1–10 loop, a random-termination loop, and an array traversal.
Explore the PHP while loop in this hands-on lesson, showing a loop that prints 1–10 and another that repeats until a random number equals five.
Explore how a PHP switch case selects addition, subtraction, multiplication, or division based on a random value. Generate random operands with rand and use break to prevent fall-through.
Demonstrates the MySQL API in PHP, showing procedural and object oriented usage to connect, run select queries, and display employee records from a table.
Demonstrate PHP inheritance by extending a student class to engineering student, showing how protected members and constructors pass from parent to child, and get details overridden to include branch.
Demonstrate how the get method sends form data by appending key/value pairs to the URL as a query string, and how PHP retrieves them from $_GET.
Learn how PHP handles function calls, including call by reference using ampersand, default and variable length arguments, and returning values with practical examples like swap and average.
Explore scalar type declarations in PHP 7, using typed function arguments and return types, and compare coercive and strict modes with practical examples.
Discover the PHP spaceship operator in PHP 7, a two-way comparison operator that returns three possible values: -1, 0, or 1. See practical examples with numbers and strings.
Learn how the PHP 7 null coalescing operator uses the double question mark to return a set variable or a fallback value, contrasting with the ternary operator, via practical examples.
Explore how to set and retrieve cookies in a PHP web app using an HTML form, a set-cookie.php script, and a get-cookie.php script.
Use set_exception_handler in PHP to create a custom exception handler that routes exceptions to a user defined function and prints the uncaught exception message, such as division by zero.
Demonstrate how the PHP die function handles errors by terminating the script with an optional message, using file_exists on test.txt to show 'file not found' or 'opened file successfully'.
Explore php decision making with if, else if, and else, using rand to generate a number and print prompts for ranges under 25, 25–50, or 50 and above.
Define a custom error handler function and set it as the default with set_error_handler to trap errors, print the error number and the error string, and terminate the PHP script.
Explore PHP exception handling with try, throw, and catch by demonstrating a division by zero error in a console program that uses standard input and prints the message via catch.
Discover how PHP's $_REQUEST retrieves form data from GET or POST, using the request array to access name and age, with examples of self-referential forms.
Explore anonymous class in PHP 7, instantiate an unnamed class with new, initialize x via the constructor, and perform add and subtract methods to yield 30 and 5.
Explore class and object creation in PHP with a book class featuring title and price. Understand constructor usage, setters and getters, and get details to display object data.
Learn C++ And PHP Course, Learn Basics And Advanced C++ And Java In This C++ And PHP Two In One Complete Course
Section 1: C++ Complete Course
This course will help you learn C++ basics and give you hands-on experience to create your own projects and work with computer memory. With its adaptability and fast rendering, you’ll find the C++ programming language used everywhere, from web browsers to game development and operating systems to science and machine learning tools.
This C++ Programming Course is designed to meet the industry benchmarks. This C++ programming course will give you extensive knowledge of Object-Oriented Programming in C++, Coding Styles and Design Patterns, Generic Programming and Standard Template Library.
The course examines common programming constructs as they are implemented in C++ including C++ 11. Topics include the use of C++ for memory management, file input/output (I/O), pointers, references, exceptions, and object-oriented programming. Basic data structures such as linked lists, stacks, and queues are covered in terms of their usage and implementation using C++.
Also, this course has been created to help you learn all the basics concepts that are the core of C++ Programing. This way, you will not only program in this language, but you will also understand the logic behind this programming language and will be able to create various applications in it on your own. Indeed, if you don’t have prior programming experience, the hardest part is understanding the programming logic and this course covers all the topics to help you succeed in C++ programming.
Subjects/topics you will learn through the course are
C++ Overview
Functions and variables
Classes
Operator Overloading
Initialization and Assignment
Storage Management
Inheritance
Polymorphism
Exception
Templates
Section 2: PHP Complete Course
In this course, you'll explore the basic structure of a web application, and how a web browser interacts with a web server. You'll be introduced to the request/response cycle, You'll also gain an introductory understanding of Hypertext Markup Language (HTML), as well as the basic syntax and data structures of the PHP language, variables, logic, iteration, arrays, error handling, and superglobal variables, among other elements. An introduction to Cascading Style Sheets (CSS) will allow you to style markup for webpages.
Basic syntax
Input and Output
Arithmetic operators
Conditional operators
Comparison operators
Assignment operators
Loops
Conditional statements
and more
See you Inside the course. Thank you