Posts Tagged ‘remove bugs’

Common C++ Mistakes Programmers Make

Written by Ali. Posted in C++

c++ mistakes

C language provides a very wide resource to interact with numbers and other data types to get our problem solved. During this interaction, one usually tends to run off ground and do silly yet serious mistakes that are most of the times unintentional. The mistakes can range from common declaration errors to some serious programming errors that cannot be recognized at the compile time but send the program crashing at runtime. This post is a series of some programming mistakes that can be identified as simple yet grave.

Common Errors and Mistakes in Object Oriented Programming C++

Written by Ali. Posted in C++

error

Hello everyone. This is our second post to the common C++ errors and mistakes series. Today, we’ll get to explore some more mistakes that many programmers make, rather unintentionally! These common errors would be in the object oriented paradigm as programmers use it more frequently and get used to it with more effort and hard work. 

Using Appropriate Constructor and Avoiding Programming Errors

Written by Raza. Posted in C++

programming errors causing head ache

In Object Oriented Programming, some Programming Errors happen very often. They include the inappropriate call to the constructor, illegal initialization state of objects and unintentional assignments and errors, to name a few. Eliminating these programming errors is very important to proceed in the right direction in the program. I shall explain them step by step to you in this post. Kindly Have a look at the following code.  

Efficient Programming: Saving System Resources in Your Program

Written by Raza. Posted in C++

Efficient Programming Techniques

Programming is not a Big Deal. The Big Deal is Efficient Programming. Efficient programming is a very comprehensive term which includes writing a code which uses as less system resources as possible, is free from most of the errors  and is capable of handling all kinds of situations. I shall show you first a piece of code and then explain to you some of these aspects for writing an efficient code. Kindly follow the following piece of code. 

Use of Explicit Constructor in Our Class

Written by Raza. Posted in C++

explicit constructor c++

C++ is a very powerful and fast language. One potential danger because of this is the ability of language to call methods and convert data into other types automatically without asking the programmer. So the programmer has an added responsibility of keeping an eye on the compiler and watch out for all such errors. One such common problem is the implicit conversion through a constructor. To avoid that, we use an explicit constructor in C++. Let us see a sample code for that and then I shall explain to you what actually happens.