Category: Source Code
LRU and FIFO L1 Cache Implementation using C
Posted by M. Saqib | Last updated Jan 5, 2021 | C Programming Source Code |
Vigenere Encryption and Decryption in C++
Posted by M. Saqib | Last updated Jan 1, 2021 | C++ Source Code |
Generating Random Number in C/C++
Posted by M. Saqib | Last updated Feb 19, 2020 | C Programming Source Code |
C++ Program to solve the Quadratic Equation
by M. Saqib | Last updated Jun 26, 2020 | C++ Source Code |
This program will solve quadratic equations. It accepts coefficients of a quadratic equation from the user i.e. a, b and c and displays the roots. To compile the program name it quadratic_solver.cpp then type g++ -o quadratic_solver quadratic_solver.cpp You may need to use math.h like this: #include if you are using windows C++ programming software. (I tried it without the math.h and got an “undeclared identifier” error)
Read MoreC Algorithms Library
by M. Saqib | Last updated Jun 19, 2020 | C Programming Source Code |
This article is about a collection of common Computer Science algorithms which may be used in C projects. The C Programming Language has a much smaller Standard Library as compared to other more modern programming languages such as Java or Python. The library provides a basic set of mathematical functions, string manipulation, type conversions, and file and console-based I/O.
Read MoreC++ “Hello World” Program
by M. Saqib | Last updated Jun 26, 2020 | C++ Source Code |
Typically, the best way to learn programming is by writing code. The first program beginners write is “Hello, World!” which is often used to illustrate the syntax of a programming language. You can take a look at the list of Hello World Programs in 300 Programming Languages to see how “Hello, World!” looks like in different programming languages.
Read MoreThe “Hello, World!” Program in C
by M. Saqib | Last updated Jun 26, 2020 | C Programming Source Code |
This is a simple “Hello, World!” C program to display “Hello, World!” text on the...
Read MoreC Implementation of Base64 Encoding and Decoding
by M. Saqib | Last updated Jun 21, 2020 | C Programming Source Code |
Base64 encoding and decoding schemes are commonly used to encode binary data. Normally this is required when textual data needs to be transferred over the network or similar media and make sure that data is transferred without any modification. Base64 is commonly used in a number of applications, including email via MIME, and storing complex data in XML. This is a very simple implementation of base64 encoding and decoding in C programming language. There are number of C libraries available for encoding and decoding as well i.e. libb64, OpenSSL Base64, Apple’s Implementations, arduino-base64 etc.
Read MoreKruskal’s Algorithm Implementation in C
by M. Saqib | Last updated Apr 9, 2020 | C Programming Source Code |
This is the implementation of Kruskal’s Algorithm in C Programming Language. This algorithm is directly based on the generic MST (Minimum Spanning Tree) algorithm. Kruskal’s algorithm is a greedy algorithm in graph theory that finds a minimum spanning tree for a connected weighted graph. It finds a subset of the edges that forms a tree that includes every vertex, where the total weight of all the edges in the tree is minimized.
Read MorePorter’s Algorithm in C
by M. Saqib | Last updated Jun 21, 2020 | C Programming Source Code |
Originally written in 1979 at Computer Laboratory, Cambridge (England), it was reprinted in 1997 in the book “Readings in Information Retrieval”. Initially it was written in BCPL language. Here is the list of implementations in other programming languages including C, Java and Pearl implementations done by author himself.
Read MoreAdd time using structures in C++
by M. Saqib | Last updated Jun 26, 2020 | C++ Source Code |
This is a C++ implementation of adding time using structures. A structure is a convenient tool for handling a group of logically related data items. Structure help to organize complex data is a more meaningful way. It is powerful concept that we may after need to use in our program Design.
Read More
Subscribe for updates
Advertisement
Recent Posts
-
Selection Sort Video – Algorithm ExplanationLast updated Jan 21, 2021 | Videos
-
Quicksort Video – Algorithm ExplanationLast updated Jan 21, 2021 | Videos
-
What Are The Best Programming Languages for Game Development?Last updated Jan 20, 2021 | Blog
-
Qfusion 3D Open Source Game EngineJan 19, 2021 | Blog
-
How to Read and Write Excel Files in C#Last updated Jan 19, 2021 | C# Programming Tutorials
-
The Pyrogenesis RTS and 3D Game EngineLast updated Jan 17, 2021 | Blog
-
Fundamental Principles of Data Integration for Database AdministratorsLast updated Jan 12, 2021 | Blog
-
What Makes Houseparty a Safe, Fun Way to Connect in 2021Last updated Jan 11, 2021 | Mobile Tech
-
C++ Wave File Writer from Text FileJan 7, 2021 | C++ Source Code
-
LRU and FIFO L1 Cache Implementation using CLast updated Jan 5, 2021 | C Programming Source Code