A friend is somebody
Who knows you and likes you
Exactly the way that you are.
Someone who's special
And so close in thought
That no distance can ever seem far.
A friend understands you
Without any words,
Stands by you
When nothing goes right.
And willingly talks
Over problems with you
Till they somehow
Just vanish from sight.
And whether you're neighbors
Or live miles apart,
A word from a friend gives a lift
To your heart and spirit.
That shows you once more
Why friendship is life's dearest gift!
Hi, this is the blog for programs in different programming languages designd by me. the all programs are original and not copied from any where.
Saturday, July 31, 2010
Sunday, June 6, 2010
my stuff - women empowerment posters

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Saturday, May 29, 2010
c++ - create personal library using template(linux platform)
/*create own personal library in c++, using gcc compiler in linux platform.
atfirst create a source file and a header file. then create a main file to
include header file. here tem.cpp is source file and tem.h is header
file. main.cpp is main file.here tempalte is used instead of function definition. */
//template is a general case for functions for diff. datatypes as "int,float,double".
//note : - use '>' & '<' as ']' & '[' respectively.
//"tem.h"
template[class T]
T sum[T a,T b]
{
return a+b;
}
//"tem.cpp"
#include[iostream]
#include"tem.h"
//compile source file tem.cpp as "gcc -c tem.cpp"
//object file tem.o is created.
//"main.cpp"
#include[iostream]
#include"tem.h"
using namespace std;
int main()
{
cout[["sum is "[[sum(3,5)[[endl;
cout[["sum is "[[sum(3.0,5.0)[[endl;
return 0;
}
//compile it as "g++ -Wall main.cpp tem.o
//run as "./a.out" result will be
//"sum is 8"
//"sum is 8.0"
atfirst create a source file and a header file. then create a main file to
include header file. here tem.cpp is source file and tem.h is header
file. main.cpp is main file.here tempalte is used instead of function definition. */
//template is a general case for functions for diff. datatypes as "int,float,double".
//note : - use '>' & '<' as ']' & '[' respectively.
//"tem.h"
template[class T]
T sum[T a,T b]
{
return a+b;
}
//"tem.cpp"
#include[iostream]
#include"tem.h"
//compile source file tem.cpp as "gcc -c tem.cpp"
//object file tem.o is created.
//"main.cpp"
#include[iostream]
#include"tem.h"
using namespace std;
int main()
{
cout[["sum is "[[sum(3,5)[[endl;
cout[["sum is "[[sum(3.0,5.0)[[endl;
return 0;
}
//compile it as "g++ -Wall main.cpp tem.o
//run as "./a.out" result will be
//"sum is 8"
//"sum is 8.0"
c++ - create personal library(linux platform)
/*create own personal library in c++, using gcc compiler in linux platform.
atfirst create a source file and a header file. then create a main file to
include header file. here function.cpp is source file and function.h is header
file. main.cpp is main file. */
//note : - use '>' & '<' as ']' & '[' respectively.
//"function.h"
int sum(int a,int b);
//"function.cpp"
#include"function.h"
int sum(int a,int b)
{
return a+b;
}
//then compile source file function.cpp as gcc -c function.cpp
//it creates object file function.o
//"main.cpp"
#include[iostream]
#include"function.h"
using namespace std;
int main()
{
cout[["sum is "[[sum(3,5)[[endl;
return 0;
}
//compile it as "g++ -Wall main.cpp function.o"
//and then run as "./a.out" the result "sum is 8".
//
atfirst create a source file and a header file. then create a main file to
include header file. here function.cpp is source file and function.h is header
file. main.cpp is main file. */
//note : - use '>' & '<' as ']' & '[' respectively.
//"function.h"
int sum(int a,int b);
//"function.cpp"
#include"function.h"
int sum(int a,int b)
{
return a+b;
}
//then compile source file function.cpp as gcc -c function.cpp
//it creates object file function.o
//"main.cpp"
#include[iostream]
#include"function.h"
using namespace std;
int main()
{
cout[["sum is "[[sum(3,5)[[endl;
return 0;
}
//compile it as "g++ -Wall main.cpp function.o"
//and then run as "./a.out" the result "sum is 8".
//
Friday, May 28, 2010
my stuff - my fotos of vaishno devi & beyond.

.......................................................................

.......................................................................

.......................................................................

.......................................................................

check out me in these photos
Subscribe to:
Comments (Atom)