Operating System An operating system is a set of programs that coordinates all the activities among computer hardware devices. It provides a means for users to communicate with the computer and other software. It is a very powerful program for all the computers and similar devices like your laptops, smartphones, tablets, and your smartwatches .When… Continue reading
Month: November 2022
TLS 1.2 support with C# windows
Recently I ran into an issue where my client failed to connect to our windows software after they upgraded to TLS 1.2. Reason being our application was supporting tls version < 1.2 because of .Net 4.5 . Since TLS standards keep developing and improving. At the moment TLS 1.2 is a latest encryption standard powering… Continue reading
Calculate size of drive in C# – How to find directory drive?
In this post, we will be discussing how to find the directory drive and the size of drive in C#. This can be useful where application might want to check for drive size or remaining size of drive before getting started. Below is the snippet of implementation: To get the drive information in C#, one… Continue reading
Program to find power of a number
In computer programming, power is denoted by symbol ^ . To calculate the power y of a number x, we use x^y. For example Let’s say x = 2, y = 5 Output of x^y = 32. Below is the implementation of the same In the above program, the function pow() is used to calculate… Continue reading
Calling C++ function from C
To Call a C++ function from C , you need to use extern “C” with the C++ function and call it from your C/C++ code. The extern “C” line tells the compiler that the external information sent to the linker should use C calling conventions and name mangling. Below is the implementation: This works only for non-member… Continue reading
Program to find roots of Quadratic Equation C++
To find roots of Quadratic equation , we need to first calculate the determinant. Once the determinant is calculated then we will get the roots using the formula. Below is the program
Program to find best possible denomination of input money
In this program, we will be finding possible denomination of money input from user. In this case we are assuming denomination as 1,5,10,25. For example if input money is 65 then denomination will be 25*2,10*1,5*1. Since we are trying to get best possible denomination such that we have least coins, so will store the denomination… Continue reading
Infix to Postfix Expression Using Stack
In this post, we will see infix to postfix expression.
Iterators and Ranges in C++
An iterator is a variable that points to an element of a data structure. The iterator begin points to the first element of a data structure, and the iterator end points to the position after the last element. Let’s look at the example below Where vector v contain these elements: [4, 3, 2, 5, 6,… Continue reading