Posts

Interesting Facts about C++.

Image
C++ is an object-oriented language. No. C++ is a multi-paradigm programming language. C++ supports OOP, procedural programming, generic programming, template meta programming and functional programming. It is one of the biggest strengths of C++ that it is a multi-paradigm programming language. Programmers should be free to pick their own programming style, and that style should be fully supported by C++. Why should I define a  class  just to print “Hello world”? This quote by  Bjarne Stroustrup  really makes sense.      “Certainly not every good program is object-oriented, and not every object-oriented program is good.”  image source: Wikipedia  C++ is just an extension to C and is a super set of C. C & C++ both are different programming languages having different rules and standardized by different committees. C & C++ both have diverged since C99. There are many features of C99 and C11 which aren’t officially part of C++ language but some compilers

GETTING STARTED WITH C++

Image
                      C++ 1. What is C++?     C++ was developed by Bjarne Stroustrup at Bell labs in 1979,  as an extension to the C language.  C++ is a cross-platformed language that can be used to create high-performance applications.  The language was updated 3 major times in 2011, 2014, and 2017 to C++11, C++14, and C++17 respectively.  2. Why Use C++?     C++ is one of the world's most popular programming languages.  C++ is an object oriented language which gives a clear structure to programs and allows code to be reused.  C++ is portable and can be used to develop applications that can be adapted to multiple platforms.  C++ can be found in today's operating systems, Graphical User Interfaces, and embedded systems.  C++ is fun and easy to learn! To start using C++, you need two things: A text editor, like Notepad, to write C++ code A compiler, like GCC, to translate the C++ code into a language that the computer will understand 3. Instal

Happy holi in coding style

Image
WISH HAPPY HOLI USING C LANGUAGE: follow these steps : 1. open code blocks and select new project: 2. select console application : 3. click on next button and choose c language: 4. provide project title as well as project path: now you can see that the main window is open , so write the code here: #include <stdio.h> #include <wchar.h> #include <stdlib.h> #include <locale.h> int i,j; void delay() {     for(i=0; i<1000; i++)         for(j=0; j<3000; j++)         {} } void delay1() {     for(i=0; i<100000; i++)         for(j=0; j<3000; j++)         {} } void change() {system("COLOR 9");         delay1();         system("COLOR C");         delay1();         system("COLOR 5");         delay1();         system("COLOR E");         delay1(); } int main(void) {     char *locale = setlocale(LC_ALL, "");     FILE *in = fopen("holi.txt", "r&qu

How to Start programming.

How to Start programming. First things first, you can't rely on books to learn CS. You need to have access to the internet and online resources. Books are good for the theoretical parts(Data Structures and Algorithms, Discrete Math, theoretical CS, Cryptography, etc. I will tell you about these later on). So, you just need an internet connection to study. So, as I mentioned in an earlier post, C++ is a good start. It's a good language with various applications, its still in use, and its accepted in almost all programming contests. Python is another good language for beginners, but its easy and has got its demerits as a first language(you will find it tough to move to C++ if you know Python as your first language, whereas learning Python after C++ is trivial). I'll tell you a step by step approach to learn programming. 1.  course on C++. There are many other courses on Coursera, Udemy, MITOCW, etc. but they are of some other languages. If you find a

first programming language

There are always some questions which trouble beginners a lot. Which 'language' should I begin with? Why should I learn to code? I don't have a laptop. I guess I should not go into this field. I don't know where to start. 1. Which 'language' should I begin with? Well, Computer Science is not about learning n number of language. Language is just a means of communicating with the computer. There are hundreds of programming languages, and everyone has its merits and demerits, and different use. Most complex structures like Facebook use many languages. You need to pick up one language first. Once you are good with its concepts, you can pick up any language. I personally feel that C++ must be your first language. 2. Why should I learn to code?  Basically, everything today(and even more in future) depends on computers, and hence on programmers and computer scientists. Your mobile phone works cause someone has coded the software. Heard of those sel