Tuesday, 16 August 2016

Why c++ is a popular programming language


C++ is the general programming language almost everybody learns in their early programming days to build up a strong understanding of basic programming concepts. It is still a popular programming language in the programming language family. Many languages like JAVA and C# have been influenced by Cplusplus.

Some of the main features mentioned below:


Simplicity:
It is first of its kind in programming languages. Simple and deep in its functioning, and this is why most of the time people learn it first to get the basic concepts right. 

Direct System access:
C++ have commands to access hardware of the system on which it is operating. It gives you more power over the machine.

Object bases programming:
Like other popular programming languages it provides you the object based approach to solve real world problems. 

User defined function and operator overloading:
Custom function overloading when you design your data types. 

Pointers:
Pointers are very interesting and sensitive feature of C. It plays an important role in memory allocation and control.


C++ is so powerful that if you use it insensibly, it can crash your system.   

Wednesday, 29 May 2013

How to make a folder using c++


This is the source code of making folder using c++:
 in this code i use my "D" to save the new folder i make. You can store this new folder in any drive you want by giving the address in parentheses. 

#include<iostream.h>
#include<conio.h>
#include<direct.h>

 main()
{
 
       mkdir("D:/myfolder");
       return 0;
}
End

how to delete a folder using c++


How to delete a folder in c++:-
This is the source code that how to delete a folder in a computer using c++


#include <errno.h>
#include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
    using namespace std;
  
    int main()
    {                                         
    rmdir("D:/myfolder");          //myfolder is the name of the folder
    return 0;
    }
End