C++ Programming Tutorials

C++ Programming Tutorials And Articles
  Title / Author Replies
Views Reverse Sort Order
Finds INTEGRAL of f(x) by Trapezoidal and Simpson method Simultaneously TRAPEZOIDAL RULE :- Integral of F(x) in between the limits a and b is given by =(h/2)*(y+2(y+y+y+..y)+y) where y=F(x), x=x+h, h=(b-a)/n.
Introduction This article talks about Structures in C/C++. Background Definition Structure is a collection of variables of potentially different types, grouped together under a single name, for ease of handling.
Introduction Here is a code in which i have created for the string class. This article tells how we can implement the functions of a string through making it a class. //Header Files # include "classfile.h"
Annotation. The article may be interesting for developers who use or plan to use OpenC++ library (OpenCxx). The author tells about his experience of improving OpenC++ library and modifying the library for solving special tasks. Introduction. Introduction. One may often here in forums that...
Problems of testing 64-bit applications. Andrey Karpov Evgeniy Ryzhkov http://www.Viva64.com March 2007 Abstract. The article observes some questions related to testing the 64-bit software. Some difficulties which a developer of resource-intensive 64-bit applications may face and the...
Abstract Introduction Logical errors Missing /openmp Missing parallel Missing omp Missing for Unnecessary parallelization Incorrect usage of ordered Redefining the number of threads in a parallel section
Being an experienced C/C++ developer, sometimes there are modules in which the code layer which interact with the system is written in C while the layer above it is written in C++. Have you ever thought of how these two layers (one written in C and other in C++) interact? What if we want to call a...
Annotation. Though the history of 64-bit systems development makes more than a decade, the appearance of 64-bit version of OS Windows raised new problems in the sphere of development and testing applications. In the article there are considered some mistakes connected with 64-bit C/C++ code...
Abstract The article will familiarize application developers with tasks given them by the mass introduction of 64-bit multi-core processors symbolizing revolutionary increase of computing power available for an average user. It will also touch upon the problems of effective use of hardware...
Templates is a concept which enable us to define generic classes and functions and thus provides support for generic programming. Generic programming is an approach where generic types are used as parameters in algorithm so that they work for variety of suitable data types and data structures. A...
Printing the date from starting date to ending date The program takes the starting date and ending date as inputs and prints the dates in between them.This program is useful if u r dealing with dates. The code I have used four date functions i.e date1() , date2() , date3() , date4(). When...
While gathering requirements for a software product, we cannot cover all the use cases of the product. If software under development is simpler we might be able to make it fool proof from all angles but large enterprise software products are not easy to develop maintaining high standards of...
Introduction Gauss-siedel method to solve system of equations :undecided The code #include <stdio.h> #include <conio.h> #include <math.h>
We have all read about C++ Standard Template Library. It provides generic code for data types. Like vectors, pairs, list, sets, maps, etc. Today we'll take a good look into Vectors. VECTOR We have all been using arrays to store elements. But you must have thought at one point or another,...
Abstract Introduction The first step 64-bit mode can be different. Let's sort it out The second step. Find out if you need the 64-bit version of your product Applications' life-cycle duration Resource-intensiveness of an application Development of libraries Dependence of your product...
Find roots of any linear algebraic nth order equation by Regula Falsi method The Code #include <stdio.h> #include <conio.h> #include <math.h> #define ACC 0.00001 #define N 10
Introduction Memory allocation for objects is a tough issue, sometimes. Dynamically allocated memory has to be treated specially when one object is used to initialize another. In default constructor a bit wise copy is done when one object is assigned to another, leaving no room for separate...
Three major concepts of C++ are Classes, Polymorphism, Inheritance.Let us discuss them in details. Classes A class is the implementation of an abstract data type. It defines attributes and methods which implement the data structure and operations of the abstract data type, respectively....
Operator overloading is an extremely exciting feature of C++ language that allows you to simplify complex code into more readable and easy to understand code. For example what if we want to add two objects? Usually we will define some addition function that takes object to be added as a parameter...
Introduction Many times you may have wondered how to return several values from a C++ function. I know it's easy for most of you when you know "how many" values your func is going to return. I have seen many people use std::pair to return two values from a func. But what about the case when you...