>>i have c compiler so can i use it or i need c++ compiler and where can i get it
Depends on the C compiler you are using. Most modern compilers will compile both C and C++, depending on the file exten. *.c is normally compiled as C code while *.cpp or *.cc is compiled as c++. But you will have to test your compiler to find out how it behaves.