freeCodeCampforfreeCodeCampfreecodecamp.org·May 2, 2024How to Run SQL-Like Queries on C/C++ FilesBy Amr Hesham Hello everyone! I'm a Software engineer who's interested in low-level programming, compilers, and tool development. At the end of 2023, I published my first article on freeCodeCamp about how I created a SQL-like Language to run queries ...DiscussC++
freeCodeCampforfreeCodeCampfreecodecamp.org·Jan 16, 2024Atomics and Concurrency in C++By Zaid Humayun Concurrency is a programming term you'll need to be familiar with if you code in C++. It's especially relevant if you want to get more out of your available compute resources. But concurrency comes with certain problems. Some of them...DiscussC++
Jayant ChowdharyforfreeCodeCampfreecodecamp.org·Dec 11, 2023C++ Tutorial – What Are the constexpr and constinit Specifiers?When we write programs, many operations which are performed at runtime can actually be done at compile time – that is, baked into code. This improves program performance since operations are no longer being computed on the fly, during runtime. Whil...DiscussC++
Jayant ChowdharyforfreeCodeCampfreecodecamp.org·Dec 6, 2023What is the Static Initialization Order Fiasco in C++? [Solved]In this article, I'll be covering a subtle but egregious problem that can occur in C++ programs. This problem is popularly called the 'Static Initialization Order Fiasco'. I'll first go over what the problem is, then go onto some solutions and explo...DiscussC++
Jayant ChowdharyforfreeCodeCampfreecodecamp.org·Dec 4, 2023Keeping Time in C++: How to use the std::chrono APIKeeping track of time is a very important aspect of computer programs. Some common use cases are: Measure/profile the performance of certain parts of code. Do work at certain periods of time, from within a program. Detect whether threads are in a d...DiscussC++
Jayant ChowdharyforfreeCodeCampfreecodecamp.org·Nov 30, 2023How to Build a Clang AST-Based C++ Static Analysis ToolClang is a set of tools and projects that provides infrastructure for languages in the C family like C, C++, OpenCL, and CUDA. It is a part of the LLVM project. This article will show you how to use Clang's front end libraries to build a simple stati...DiscussC++
Ihechikara AbbaforfreeCodeCampfreecodecamp.org·Mar 17, 2023Binary Search in C++ – Algorithm ExampleThe binary search algorithm is a divide and conquer algorithm that you can use to search for and find elements in a sorted array. The algorithm is fast in searching for elements because it removes half of the array every time the search iteration ha...Discussalgorithms
Anthony BeheryforfreeCodeCampfreecodecamp.org·Mar 1, 2023Python VS C++ Time Complexity AnalysisSpeed is important in programming languages, and some execute much faster than others. For example, you might know that C++ is faster than Python. So why is this the case? Well, C++ is a language that uses a compiler, not to mention it is a much lowe...Discussalgorithms
Abhilekh gautamforfreeCodeCampfreecodecamp.org·Feb 23, 2023What is Virtual Inheritance?C++ supports the concept of inheritance – that is, a class can inherit properties from other classes. But sometimes you might need to use what is commonly referred as virtual inheritance. In this article we will discuss when you might need to use v...DiscussC++
Md. Fahim Bin AminforfreeCodeCampfreecodecamp.org·Feb 16, 2023How to Print Array Elements in a Given Order with or without a FunctionIf you are learning to solve problems using a programming language, you've likely faced the problem of printing array elements in a given order or in reverse order. You might have also needed to do this by either using a user-defined function or not ...Discussarrays