Posts

Showing posts from May, 2020

Useful tips for pro programming

Tips and Tricks:                1. Expecting to learn everything in a day.                  Do you expect that you will start today and you will learn everything by tomorrow? I also expected this. But after gaining a little experience in programming I came to know that no matter how sharp you are you will gain experience in programming little by little. So don't rush towards it, be patient and persistent. 2. Too much socialized in non-programming material.              If you are having a habit like using social media that doesn't include programming topics, then you must stop it right now. It is not good for programming mostly for beginners. And in case you are tired and want some relaxation then you can play video games which makes you feel relaxed or you can delete some old emails. It would be also fun. 3. Learn basics in an acceptable manner.       ...

Operator Overloading In C++

Image
Operator Overloading : For operator overloading it is important to have the knowledge of function overloading. First of all the question that arises is what is overloading? Let's consider an example: Consider a person doing his job then his boss came and assigned him the same job with a little difference. Means the job the person is doing is same but it also has some changing in it. Let's consider a program:                  void printNumber(int a) {     cout << a; } This is effective with integer arguments only. Overloading it will make it available for other types, such as char and float .          void printNumber(char a) {   cout << a; } Now the same printNumber function works for both int and char. You can consider the function as the job and the data types int and char as difference in the same job.(Both functions are doing the same job ( printing the values ) but one is...

Motivation For Coding.

Image
What beginners think about Programming: Programming  is an art about which most people get confused. At first even before starting the ones who are low in math think that there will be lots of math in programming.  What actually programming is: But what programming really is, it is totally based on your logic . I have seen a lot of people who are not good in math but are too good at programming. So if you are beginner you must not get confused about the syntax that programming languages has. Just get started learn all the concepts and then dive in the world of programming. A simple program in c++ also known as the syntax of c++: What does this program do: Is it looking interesting. This program is printing "Hello World" on the computer screen. Isn't this cool. Wow this is the first code every programmer writes.  Every beginner starts his/her journey with printing "Hello World" on computer screen. C++ codes are compiled and run on an IDE(Integrated Development En...