MAKE YOUR LIFE EASIER BY USING VECTOR ALGORITHMS

#include<iostream> #include<vector> #include<cstdlib> #include<ctime> #include<algorithm> using namespace...

C++ stream manipulators (USE OF SETPRECISION(),CONVERSION FROM DECIMAL TO HEXA ND OCTAL DIGITS ETC)

#include<iostream> #include<iomanip> #include<cmath> using namespace std; int main(){ int number; cout<<&quo...

Passing arrays in to functions

#include<iostream> using std::cout; using std::endl; #include<iomanip> using std::setw; void modifyArray( int [], int ); /...

Preprocessor directives involving concatenation

#include"stdafx.h" #include<iostream> #define JUST_CHECKING //preprocessor directives #define LIMIT 4 #define TEXT 1 #d...

relationship between pointers and arrays (beginners)

#include<iostream> using namespace std; int a[]={1,23,22}; int b[]={2323,3}; int main(){ char*point="i love c++ programming ...

Usage of sizeof() operator in c++

#include <iostream> using std::cout; using std::endl; int main() { char c; short s; int i; long l; float f; double d; long ...

types of functions and their usage

#include<iostream> using namespace std; int a=56,b=56,c=56; int passbyvalue(int x); void passbyreference(int &x); void passby...

Comments:

Disqus Shortname