Month: March 2018

C++ Vector – std::vector – A Complete Guide with Examples and Programs

Vectors in C++ are one of the most powerful sequence containers, offering dynamic resizing and memory management capabilities. In this comprehensive guide, we’ll explore everything from vector initialization to advanced vector manipulation, making it an essential resource for C++ developers aiming to master this versatile container.

Read More

C++ Program to Solve the Quadratic Equation

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 More

C Algorithms Library

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 More