AAnushainyosa.hashnode.dev·Sep 6, 2023 · 2 min readSimple Singleton Design Pattern in C++In this blog, I attempted to create a simple program implementing a singleton design pattern. In a Singleton Design Pattern, only one instance for a class exists. This is achieved by Private constructor Private static object declared in the class ...00
AAnushainyosa.hashnode.dev·Aug 16, 2023 · 1 min readFunction PointerThis blog has a program that uses Function Pointer to perform two different operations. I split the code into smaller sections and explain. The standard input output header file is included to print to the stdout. #include <stdio.h> This function ca...00
AAnushainyosa.hashnode.dev·Aug 14, 2023 · 1 min readSimple Lambda functionIn this article, I write a c++ program using lambda. This lambda function squares the input value.The lambda is assigned to a variable. By calling this variable twice, the code in the body of the lambda gets executed. #include <iostream> using namesp...00
AAnushainyosa.hashnode.dev·Aug 11, 2023 · 1 min readPrint address of a variable in CThis is a simple program that prints the address of a variable in C programming language. In the main function, an integer variable,a is defined. Using the ampersand (&) operator, its address is printed.The format specifier %p is used to print the ad...00
AAnushainyosa.hashnode.dev·Oct 25, 2022 · 1 min readWIP, Trace monitoring in WindowsToday I tried these two commands. netsh trace start capture=yes It requires to be run in administer mode. This commands starts the network capturing. The immediate output is an etl file. The netsh stop command(netsh trace stop) stops the capturin...00