hrithik

March 31, 2007

Profile

  • Name:  Hrithik Roshan
  • Nick Name:  Duggu
  • Date of Birth:  10 January, 1974
  • Star Sign:  Capricorn
  • Height:  6′2
  • Weight:  74 Kg
  • Eye Color:  Brown
  • Hair Color:  Black
  • Address:  Kavita Bld., 2nd Floor Vithal Nagar Society, 11th Rd., Juhu Scheme, Mumbai 400 049
  • Family: Rakesh Roshan (Farther), Pinky (Mother), Suzanne Khan (Wife)

Blog secrects

March 30, 2007
EARN MONEY WITH BLOGS AND WEBSITES

Easy ways to earn money with Blog or Website !!!

follow step by step :

1. Create a blog with blogger.com

2. link exchange example : linkalizer , linkexchanged , gothimatch , religiousmall , linkadministrator

3. Join advertisement program, earn money with advertisement. example : adsense Google , revenuepilot , adbrite , bidvertiser and others

4. Join Affiliate program, earn money with affiliate program. example : SFI , clickbank , roiroket , LinkShare Affiliate!

5. Join Forums. Example : preCharge Community Forums , Free Advertising Blog

6. Join Articles. Example : article marketer ,

7. Join Press Releases : PRWeb.com , Pressbox.co.uk

8. Join Hit Exchanges. Example : trafficswarm , 123click , Hit Pulse

9. Join Building Network. Example : Your Luck List , 241Lead , Viral traffic list , List Dot Com

Search engine Positioning

you have submitted your blog at search engine and link exchange with others website company.

example : link exchange with earn-money-google.com

Reach On Top Ranking Position

Almost everyone uses search engines to find sites, and if your site doesn’t turn up on the first page of results you’re losing valuable traffic. Achieving a Top 10 ranking is vital to your success on the Web.

We will explain more details in the future as following :

1) What is a blog ?

** A blog is a simple web page that anyone can set up in minutes.

** Blog is a part of website. We take an example : XXX.com is a website. YYY.XXX.com is a blog. Are you understand now ? So, we can register a blog at blogger.com or wordpress.com or others.

** Having a blog is a vital part of making money on the internet.

** If you are looking for a way to start making money on the internet, and you have a budget that is very small or zero, blogging is a great way to get started.

2) How to create a blog ?

** Firstly, you have to prepare a blog address which includes a keyword phrase. (example : YYY.blogspot.com ,YYY is blog name) , title which includes your keyword and content info.

** After that, you can register at blogger.com or wordpress.com or others.

Example :

** Register at blogger.com step by step **

** (1) Click on ” CREATE YOUR BLOG NOW “

** (2) Fill out the form

** (3) Enter title and blog address

** (4) Choose a template

** (5) Start Posting

** (6) Enter title and Content

** (7) Click on Setting

** (8) Click on Publishing

** (9) Notify Weblogs.com change to “YES” (Weblogs.com is a blog update notification service that many individuals and services use to track blog changes.)

3) What we can take advantage from blog ?

** You can make money with a free blog

** Join advertisement program is free, earn money with advertisement. example : adsense Google , revenuepilot , adbrite , bidvertiser and others

** Join Affiliate program is free, earn money with affiliate program. example : SFI , clickbank , roiroket , LinkShare Affiliate!

** The cost for all is absolutely nothing

4) Why ping a blog ?

** Once you finish posting, you need to ping it. Pinging lets the blog directories know that something has changed. The search engines will come crawling / updating.

** Every time, you post new content to your blog, you need to ping it

5) How to ping a blog ?

** Click on http://pingomatic.com

6) How some people can make money & earn money over USD $ 20,000/month on the internet ?

** Some people use blog or website to create fortune online : such as advertisement , promote affiliate program, deliver newsletter, sell text link , sell ebooks and others.

** example : They use blog freely to earn money.

** 1 blog earn money at least $ 20.00 for one month , they create 1000 blog , how much they could earn ?

USD $ 20,000.00 . Is it easy ??? . They just join advertisement and affiliate program (all is free).

7) How to submit your blog or website to search engine ?

** Search Engine : Google , Yahoo , Msn and many others.

** Go to Google’s search engine, just type “add url google” , the listing will be displayed, you will see the title “add url google” on the listing, just click on and register it.

** Go to Yahoo’s search engine, just type “add url Yahoo” the listing will be displayed, you will see the title “add url Yahoo” on the listing, just click on and register it.

** Go to Msn’s search engine, just type “add url Msn” the listing will be displayed, you will see the title “add url Msn” on the listing, just click on and register it.

** Or, go to submit free to 50 Search Engine

BuildTraffic.net

8) How to promote blog or website on the internet ?

** Write an article relevant with your blog or website. Example : article marketer

** Join Forums. Example : preCharge Community Forums and others.

** The link exchange strategy is what will give you traffic in the long term and most important. example : linkalizer , linkexchanged , gothimatch , religiousmall , linkadministrator

** Join Hit Exchanges. Example : trafficswarm , 123click , Hit Pulse

** Join Press Releases : PRWeb.com , Pressbox.co.uk

** Join Building Network. Example : Your Luck List , 241Lead , Viral traffic list , List Dot Com

** Join PPC advertisement

9) What is PPC advertisement ?

** PPC – Pay Per Click.

** Earn money from your website or blog – get paid for every click

** Earn money with affiliate program that pays you for every click
You get paid for every visitor that clicks on an ad. You to make as much as possible from your advertising space, by letting advertisers bid on your ad space.

** Example PPC advertisement : adsense Google , revenuepilot , adbrite , bidvertiser and others

10) What is Advertiser ?

** Place your ads on sites of your choice, set your pay per click pricing and pay only for clicks you receive.

11) What is Publisher ?

** Place the text ads on your website and make money online by getting paid for every click.

12) What is an Incoming links ?

This is a very important thing, because to reach TOP 10 in Google, Yahoo!, MSN and other major search engines, you have to get as much quality incoming links as you can. What is an incoming link? It is when someone links to your site from his webpage. And when you have more links to your web site, your rank goes up. The better quality of the link is, the better ranking boost your site receives in search results.

How to get such links?
There are many ways to develop a high number of incominig links to your website.

1. reciprocial linking – asking other webmasters for links and linking back to their websites in exchange. It used to be an effective method, but right now search engines discount the value of such links to zero.
2. cross linking – asking other webmasters for link from to your website, and linking back to their website from your OTHER website. A similar method may be used when you have only one website, but your linking partner has 2 or more websites – ask for link to your site from one of his sites, and link back to his OTHER website in exchange.
3. context linking – writing articles with links to your website in the article text (target your keyphrases or keywords!), or sponsoring other articles, that have high Google PR
4. automatic link building – with a help of an automated link building system

13) How/Where to register domain name ?

** Register domain name : Example Doteasy.com

Permalink

Copyright © 2007 Rediff.com India Limited. All rights reserved.
Disclaimer | Terms & Conditions | Feedback | Privacy Policy

How to Earn a Six Figure Income From Blogging in Two Easy Steps

March 30, 2007



encapsulation

March 30, 2007

WHY BOTHER WITH ENCAPSULATION?
—————————————————————–
Encapsulation
protects data from accidental corruption, and constructors
guarantee proper initialization.  Both prevent errors that we are
very prone to make since we are thinking only about the internals
of the class when we are writing it.  Later, when we are actually using the class, we have no need to concern ourselves with the internal structure or operation, but can spend our energies using the class to solve the overall problem we are working on.  As you may guess, there is a lot more to learn about the use and
benefits of classes so we will dive right into some new topics.

The purpose of this chapter is to illustrate how to use some of the traditional aspects of C or C++ with classes and objects.  Pointers to an object as well as pointers within an object will be illustrated.  Arrays embedded within an object, and an array of objects will be illustrated.  Since objects are simply another C++ data construct, all of these things are possible and can be used if needed.

In order to have a systematic study, we will use the program
named BOXES1.CPP from the last chapter as a starting point and we will add a few new constructs to it for each example program.  You will recall that it was a very simple program with the class definition, the class implementation, and the main program all in
one file.  This was selected as a starting point because we will eventually make changes to all parts of the program and it will be convenient to have it all in a single file for illustrative purposes.  It must be kept in mind however that the proper way to use these constructs is to separate them into the three files as
was illustrated in BOX.H, BOX.CPP, and BOXES2.CPP in the last
chapter.  This allows the implementor of box to supply the user with only the interface, namely  BOX.H.  Not giving him the implementation file named BOX.CPP, is practicing the technique of information hiding.  As we have said many times, it seems silly to break up such a small program into three separate files, and it is sort of silly.  The last chapter of this tutorial will illustrate a program large enough to require dividing the program up into many separate files.

AN ARRAY OF OBJECTS
—————————————————————–
Examine the file named OBJARRAY.CPP for our    ==================
first example of an array of objects.  This       OBJARRAY.CPP
file is nearly identical to the file named     ==================
BOX1.CPP until we come to line 44 where an

array of 4 boxes are declared.  Recalling the operation
of the constructor you will remember that each of the four box
objects will be initialized to the values defined within the
constructor since each box will go through the constructor as
they are declared.  In order to declare an array of objects, a
constructor for that object must not require any parameters.  (We have not yet illustrated a constructor with initializing parameters, but we will in the next program.)  This is an efficiency consideration since it would probably be an error to initialize all elements of an array of objects to the same value.  We will see the results of executing the constructor when we compile and execute the file later.

Line 49 defines a for loop that begins with 1 instead of the
normal starting index for an array leaving the first object,
named group[0], to use the default values stored when the
constructor was called.  You will observe that sending a message to one of the objects uses the same construct as is used for any object.  The name of the array followed by its index in square brackets is used to send a message to one of the objects in the array.  This is illustrated in line 50 and the operation of that code should be clear to you.  The other method is called in the
output statement in lines 57 and 58 where the area of the four
boxes in the group array are listed on the monitor.

Another fine point should be mentioned.  The integer variable named index is declared in line 49 and is still available for use in line 56 since we have not yet left the enclosing block which begins in line 43 and extends to line 65.

DECLARATION AND DEFINITION OF A VARIABLE
—————————————————————–
An extra variable was included for illustration, the one named
extra_data in line seven.  Since the keyword static is used to modify this variable in line 7, it is an external variable and only one copy of this variable will ever exist.  All seven
objects of this class share a single copy of this variable which
is global to the objects defined in line 44.

The variable is actually only declared here which says it will
exist somewhere, but it is not defined.  A declaration says the variable will exist and gives it a name, but the definition
actually defines a place to store it somewhere in the computers
memory space.  By definition, a static variable can be declared in a class header but it cannot be defined there, so it is usually defined in the implementation file.  In this case it is defined in line 16 and can then be used throughout the class.

Figure 6-1 is a graphical representation of some of the
variables.  Note that the objects named large, group[0],
group[1], and group[2] are not shown but they also share the

variable named extra_data.  They are not shown in order to
simplify the picture and enhance the clarity.

Line 23 of the constructor sets the single global variable to 1
each time an object is declared.  Only one assignment is
necessary so the other six are actually wasted code.  To
illustrate that there is only one variable shared by all objects
of this class, the method to read its value also increments it.
Each time it is read in lines 60 through 64, it is incremented
and the result of the execution proves that there is only a
single variable shared by all objects of this class.  You will
also note that the method named get_extra() is defined within
the class declaration so it will be assembled into the final
program as inline code.

You will recall the 2 static variables we declared in lines 16
and 17 of DATE.H in chapter 5 of this tutorial.  We defined them
in lines 9 and 10 of DATE.CPP and overlooked a complete
explanation of what they did at that time.  The declaration and
definition of these variables should be considered a good example
of the proper place to put these constructs in your classes.

Be sure you understand this program and especially the static
variable, then compile and execute it to see if you get the same result as listed at the end of the program.

A STRING WITHIN AN OBJECT
—————————————————————–
Examine the program named OBJSTRNG.CPP for    ===================
our first example of an object with an           OBJSTRING.CPP
embedded string.  Actually, the object does   ===================
not have an embedded string, it has an
embedded pointer, but the two work so closely together that we
can study one and understand both.  You will notice that line 7
contains a pointer to a string named line_of_text.  The
constructor contains an input parameter which is a pointer to a
string which will be copied to the string named line_of_text
within the constructor.  We could have defined the variable
line_of_text as an actual array in the class, then used strcpy()
to copy the string into the object and everything would have
worked the same, but we will leave that as an exercise for you at
the end of this chapter.  It should be pointed out that we are
not limited to passing a single parameter to a constructor.  Any number of parameters can be passed, as will be illustrated later.

You will notice that when the three boxes are declared this time,
we supply a string constant as an actual parameter with each
declaration which is used by the constructor to assign the string
pointer some data to point to.  When we call get_area() in lines
48 through 53, we get the message displayed and the area
returned.  It would be prudent to put these operations in
separate methods since there is no apparent connection between

printing the message and calculating the area, but it was written
this way to illustrate that it can be done.  What this really
says is that it is possible to have a method that has a side
effect, the message output to the monitor, and a return value,
the area of the box.  However, as we discussed in chapter 4 when
we studied DEFAULT.CPP, the order of evaluation is sort of funny,
so we broke each line into two lines.

After you understand this program, compile and execute it.

AN OBJECT WITH AN INTERNAL POINTER
—————————————————————–
The program named OBJINTPT.CPP is our first    ==================
example program with an embedded pointer          OBJINTPT.CPP
which will be used for dynamic allocation of   ==================
data.  In line 7 we declare a pointer to an
integer variable, but it is only a pointer, there is no storage
associated with it.  The constructor therefore allocates an
integer type variable on the heap for use with this pointer in
line 21.  It should be clear to you that the three objects
created in line 45 each contain a pointer which points into the
heap to three different locations.  Each object has its own
dynamically allocated variable for its own private use.  Moreover
each has a value of 112 stored in its dynamically allocated data
because line 22 stores that value in each of the three locations,
once for each call to the constructor.

In such a small program, there is no chance that we will exhaust
the heap, so no test is made for unavailable memory.  In a real
production program, it would be expedient to test that the value
of the returned pointer is not NULL to assure that the data
actually did get allocated.

The method named set() has three parameters associated with it
and the third parameter is used to set the value of the new
dynamically allocated variable.  There are two messages passed,
one to the small box and one to the large box.  As before, the
medium box is left with its default values.

The three areas are displayed followed by the three stored values
in the dynamically allocated variables, and we finally have a
program that requires a destructor in order to be completely
proper.  If we simply leave the scope of the objects as we do
when we leave the main program, we will leave the three
dynamically allocated variables on the heap with nothing pointing
to them.  They will be inaccessible and will therefore represent
wasted storage on the heap.  For that reason, the destructor is
used to delete the variable which the pointer named point is
referencing, as each object goes out of existence.  In this case,
lines 37 and 38 assign zero to variables that will be
automatically deleted.  Even though these lines of code really do
no good, they are legal statements.

Actually, in this particular case, the variables will be
automatically reclaimed when we return to the operating system
because all program cleanup is done for us at that time.  If this
were a function that was called by another function however, the
heap space would be wasted.  This is an illustration of good
programming practice, that of cleaning up after yourself when you
no longer need some dynamically allocated variables.

One other construct should be mentioned again, that of the inline
method implementations in line 11 and 12.  As we mentioned in
chapter 5 and repeated earlier in this chapter, inline functions
can be used where speed is of the utmost in importance since the
code is assembled inline rather than by actually making a method
call.  Since the code is defined as part of the declaration, the
system will assemble it inline, and a separate implementation for
these methods is not needed.  If the inline code is too involved,
the compiler is allowed to ignore the inline request and will
actually assemble it as a separate method, but it will do it
invisibly to you and will probably not even tell you about it.

Remember that we are interested in using information hiding and
inline code prevents hiding of the implementation, putting it out
in full view.  Many times you will be more interested in speeding
up a program than you are in hiding a trivial implementation.
Since most inline methods are trivial, you should feel free to
use the inline code construct wherever it is expedient.  Be sure
to compile and execute this program.

A DYNAMICALLY ALLOCATED OBJECT
—————————————————————–
Examine the file named OBJDYNAM.CPP for our    ==================
first look at a dynamically allocated object.     OBJDYNAM.CPP
This is not any different than any other       ==================
dynamically allocated object, but an example
is always helpful.  In line 39 we declare a pointer to an object
of type box and since it is only a pointer with nothing to point
to, we dynamically allocate an object for it in line 44, with the
object being created on the heap just like any other dynamically
allocated variable.  When the object is created in line 44, the
constructor is called automatically to assign values to the two
internal storage variables.  Note that the constructor is not
called when the pointer is declared since there is nothing to
initialize.  It is called when the object is allocated.

Reference to the components of the object are handled in much the
same way that structure references are made, through use of the
pointer operator as illustrated in lines 50 through 52.  Of
course you can use the pointer dereferencing method without the
arrow such as (*point).set(12, 12); as a replacement for line 51
but the arrow notation is much more universal and should be used.
Finally, the object is deleted in line 54 and the program
terminates.  If there were a destructor for this class, it would

be called as part of the delete statement to clean up the object
prior to deletion.

You have probably noticed by this time that the use of objects is
not much different from the use of structures.  Be sure to
compile and execute this program after you have studied it
thoroughly.

AN OBJECT WITH A POINTER TO ANOTHER OBJECT
—————————————————————–
The program named OBJLIST.CPP contains an       =================
object with an internal reference to another       OBJLIST.CPP
object of its own class.  This is the           =================
standard structure used for a singly linked
list and we will keep the use of it very simple in this program.

The constructor contains the statement in line 21 which assigns
the pointer the value of NULL to initialize the pointer.  This is
a good idea for all of your programming, don’t allow any pointer
to point off into space, but initialize all pointers to something.
By assigning the pointer within the constructor, you guarantee
that every object of this class will automatically have its
pointer initialized.  It will be impossible to overlook the
assignment of one of these pointers.

Two additional methods are declared in lines 12 and 13 with the
one in line 13 having a construct we have not yet mentioned in
this tutorial.  This method returns a pointer to an object of the
box class.  As you are aware, you can return a pointer to a
struct in standard C, and this is a parallel construct in C++.
The implementation in lines 48 through 51 returns the pointer
stored within the object.  We will see how this is used when we
get to the actual program.

An extra pointer named box_pointer is declared in the main
program for use later and in line 66 we make the embedded pointer
within the small box point to the medium box.  Line 67 makes the
embedded pointer within the medium box point to the large box.
We have effectively generated a linked list with three elements.
In line 69 we make the extra pointer point to the small box.
Continuing in line 70 we use it to refer to the small box and
update it to the value contained in the small box which is the
address of the medium box.  We have therefore traversed from one
element of the list to another by sending a message to one of the objects.  If line 70 were repeated exactly as shown, it would cause the extra pointer to refer to the large box, and we would have traversed the entire linked list which is only composed of three elements.  Figure 6-2 is a graphical representation of the data space following execution of  line 69.  Note that only a portion of each object is actually depicted here to keep it simple.

ANOTHER NEW KEYWORD this
—————————————————————–
Another new keyword is available in C++, the keyword this.  The
word this is defined within any object as being a pointer to the
object in which it is contained.  It is implicitly declared as
class_name *this; and is initialized to point to the object for
which the member function is invoked.  This pointer is most
useful when working with pointers and especially with a linked
list when you need to reference a pointer to the object you are
inserting into the list.  The keyword this is available for this
purpose and can be used in any object.  Actually the proper way to refer to any variable within a list is through use of the predefined pointer this, by writingthis->variable_name, but the compiler assumes the pointer is used, and we can simplify every reference by omitting the pointer.  Use of the keyword this is not illustrated in a program at this point, but will be used in one of the larger example programs later in this tutorial.

You should study this program until you understand it completely then compile and execute it in preparation for our next example program.

A LINKED LIST OF OBJECTS
—————————————————————–
The next example program in this chapter is     =================
named OBJLINK.CPP and is a complete example        OBJLINK.CPP
of a linked list written in object oriented     =================
notation.  This program is very similar to
the last one.  In fact it is identical until we get to the main
program.  You will recall that in the last program the only way
we had to set or use the embedded pointer was through use of the
two methods named point_at_next() and get_next() which are listed
in lines 40 through 51 of the present program.  We will use these
to build up our linked list then traverse and print the list.
Finally, we will delete the entire list to free the space on the
heap.

In lines 56 through 58 we declare three pointers for use in the
program.  The pointer named start will always point to the
beginning of the list, but temp will move down through the list
as we create it.  The pointer named box_pointer will be used for
the creation of each object.  We execute the loop in lines 61
through 69 to generate the list where line 62 dynamically
allocates a new object of the box class and line 63 fills it
with nonsense data for illustration.  If this is the first
element in the list, the start pointer is set to point to this
element, but if elements already exist, the last element in the
list is assigned to point to the new element.  In either case,
the temp pointer is assigned to point to the last element of the
list, in preparation for adding another element if there is
another element to be added.

In line 72, the pointer named temp is caused to point to the
first element and it is used to increment its way through the
list by updating itself in line 75 during each pass through the
loop.  When temp has the value of NULL, which it gets from the
last element of the list, we are finished traversing the list.

Finally, we delete the entire list by starting at the beginning
and deleting one element each time we pass through the loop in
lines 79 through 84.

A careful study of the program will reveal that it does indeed
generate a linked list of ten elements, each element being an
object of class box.  The length of this list is limited by the
practicality of how large a list we desire to print out, but it
could be lengthened to many thousands of these simple elements
provided you have enough memory available to store them all.

Once again, the success of the dynamic allocation is not checked
as it should be in a correctly written program.  Be sure to
compile and execute this example program.

NESTING OBJECTS
—————————————————————–
Examine the program named NESTING.CPP for an    =================
example of nesting classes which results in        NESTING.CPP
nested objects.  A nested object could be       =================
illustrated with your computer in a rather
simple manner.  The computer itself is composed of many items
which work together but work entirely differently, such as a
keyboard, a disk drive, and a power supply.  The computer is
composed of these very dissimilar items and it is desirable to
discuss the keyboard separately from the disk drive because they
are so different.  A computer class could be composed of several
objects that are dissimilar by nesting the dissimilar classes
within the computer class.

If however, we wished to discuss disk drives, we may wish to
examine the characteristics of disk drives in general, then
examine the details of a hard disk, and the differences of floppy
disks.  This would involve inheritance because much of the data
about both drives could be characterized and applied to the
generic disk drive then used to aid in the discussion of the
other three.  We will study inheritance in the next three
chapters, but for now we will look at the embedded or nested
class.

This example program contains a class named box which contains an
object of another class embedded within it in line 16, the
mail_info class.  It is depicted graphically in figure 6-3.  This
object is available for use only within the class implementation
of box because that is where it is defined.  The main program has
objects of class box defined but no objects of class mail_info,

so the mail_info class cannot be referred to in the main program.
In this case, the mail_info class object is meant to be used
internally to the box class and one example is given in line 21
where a message is sent to the label.set() method to initialize
the variables.  Additional methods could be used as needed, but
these are given as an illustration of how they can be called.

Of prime importance is the fact that there are never any objects
of the mail_info class declared directly in the main program,
they are inherently declared when the enclosing objects of class
box are declared.  Of course objects of the mail_info class could
be declared and used in the main program if needed, but they are
not in this example program.  In order to be complete, the box
class should have one or more methods to use the information
stored in the object of the mail_info class.  Study this program
until you understand the new construct, then compile and
execute it.

If the class and the nested classes require parameter lists for
their respective constructors an initialization list can be
given.  This will be discussed and illustrated later in this
tutorial.

OPERATOR OVERLOADING
—————————————————————–
The example file named OPOVERLD.CPP contains   ==================
examples of overloading operators.  This          OPOVERLD.CPP
allows you to define a class of objects and    ==================
redefine the use of the normal operators.
The end result is that objects of the new class can be used in as
natural a manner as the predefined types.  In fact, they seem to
be a part of the language rather than your own add-on.

In this case we overload the + operator and the * operator, with
the declarations in lines 10 through 12, and the definitions in
lines 16 through 40.  The methods are declared as friend
functions so we can use the double parameter functions as listed.
If we did not use the friend construct, the function would be a
part of one of the objects and that object would be the object to
which the message was sent.  Including the friend construct
allows us to separate this method from the object and call the
method with infix notation.  Using this technique, it can be writ-
ten as object1 + object2 rather than object1.operator+(object2).
Also, without the friend construct we could not use an
overloading with an int type variable for the first parameter
because we can not send a message to an integer type variable
such as int.operator+(object).  Two of the three operator
overloadings use an int for the first parameter so it is
necessary to declare them as friend functions.

There is no upper limit to the number of overloadings for any given operator.  Any number of overloadings can be used provided the parameters are different for each particular overloading.

The header in line 16 illustrates the first overloading where the
+ operator is overloaded by giving the return type followed by the keyword operator and the operator we wish to overload.  The two formal parameters and their types are then listed in the parentheses and the normal function operations are given in the implementation of the function in lines 18 through 21.  The observant student will notice that the implementation of the friend functions are not actually a part of the class because the class name is not prepended onto the method name in line 16.
There is nothing unusual about this implementation, it should be
easily understood by you at this point.  For purposes of
illustration, some silly mathematics are performed in the method implementation, but any desired operations can be done.

The biggest difference occurs in line 56 where this method is
called by using the infix notation instead of the usual message sending format.  Since the variables small and medium are objects of the box class, the system will search for a way to use the + operator on two objects of class box and will find it in the overloaded operator+ method we have just discussed.  The operations within the method implementation can be anything we
need them to be, and they are usually much more meaningful than the silly math included here.

In line 58 we ask the system to add an int type constant to an
object of class box, so the system finds the other overloading of
the + operator beginning in line 25 to perform this operation.
Also in line 60 we ask the system to use the * operator to do
something to an int constant and an object of class box, which it
satisfies by finding the method in lines 34 through 40.  Note
that it would be illegal to attempt to use the * operator the
other way around, namely large * 4 since we did not define a
method to use the two types in that order.  Another overloading
could be given with reversed types, and we could use the reverse
order in a program.

You will notice that when using operator overloading, we are also
using function name overloading since some of the function names
are the same.

When we use operator overloading in this manner, we actually make
our programs look like the class is a natural part of the
language since it is integrated into the language so well.  C++
is therefore an extendible language and can be molded to fit the
mechanics of the problem at hand.

Page 6-10

Chapter 6 – More Encapsulation

OPERATOR OVERLOADING CAVEATS
—————————————————————–
Each new topic we study has its pitfalls which must be warned
against and the topic of operator overloading seems to have the
record for pitfalls since it is so prone to misuse and has
several problems.  The overloading of operators is only available
for classes, you cannot redefine the operators for the predefined
simple types.  This would probably be very silly anyway since the
code could be very difficult to read if you changed some of them
around.

The logical and “&&” and the logical or “||” operators can be
overloaded for the classes you define, but they will not operate
as short circuit operators.  All members of the logical
construction will be evaluated with no regard concerning the
outcome.  Of course the normal predefined logical operators will
continue to operate as short circuit operators as expected, but
not the overloaded ones.

If the increment “++” or decrement “–” operators are overloaded,
the system has no way of telling whether the operators are used
as preincrement or postincrement (or predecrement or
postdecrement) operators.  Which method is used is
implementation dependent, so you should use them in such a way
that it doesn’t matter which is used.

Be sure to compile and execute OPOVERLD.CPP before continuing on
to the next example program.

FUNCTION OVERLOADING IN A CLASS
—————————————————————–
Examine the program named FUNCOVER.CPP for an  ==================
example of function name overloading within a     FUNCOVER.CPP
class.  In this program the constructor is     ==================
overloaded as well as one of the methods to
illustrate what can be done.

This file illustrates some of the uses of overloaded names and a
few of the rules for their use.  You will recall that the
function selected is based on the number and types of the formal
parameters only.  The type of the return value is not significant
in overload resolution.

In this case there are three constructors.  The constructor which
is actually called is selected by the number and types of the
parameters in the definition.  In line 77 of the main program the
three objects are declared, each with a different number of
parameters and inspection of the results will indicate that the
correct constructor was called based on the number of parameters.

In the case of the other overloaded methods, the number and type
of parameters is clearly used to select the proper method.  You

Page 6-11

Chapter 6 – More Encapsulation

will notice that one method uses a single integer and another
uses a single float type variable, but the system is able to
select the correct one.  As many overloadings as desired can be
used provided that all of the parameter patterns are unique.

You may be thinking that this is a silly thing to do but it is,
in fact, a very important topic.  Throughout this tutorial we
have been using an overloaded operator and you haven’t been the
least confused over it.  It is the cout operator which operates
as an overloaded function since the way it outputs data is a
function of the type of its input variable or the field we ask
it to display.  Many programming languages have overloaded
output functions so you can output any data with the same
function name.

Be sure to compile and execute this program.

SEPARATE COMPILATION
—————————————————————–
Separate compilation is available with C++ and it follows the
identical rules as given for ANSI-C separate compilation.  As
expected, separately compiled files can be linked together.
However, since classes are used to define objects, the nature of
C++ separate compilation is considerably different from that used
for ANSI-C.  This is because the classes used to create the
objects are not considered as external variables, but as included
classes.  This makes the overall program look different from a
pure ANSI-C program.  Your programs will take on a different
appearance as you gain experience in C++.

YOU GET SOME METHODS BY DEFAULT
—————————————————————–
Even if you include no constructors or         ==================
operator overloadings you get a few defined       DEFMETHS.CPP
automatically by the compiler.  Examine the    ==================
file named DEFMETHS.CPP which will illustrate
those methods provided by the compiler, and why you sometimes
can’t use the defaults but need to write your own to do the job
the defaults were intended to do for you.

Before we actually look at the program, we will list a few rules
that all compiler writers must follow in order to deliver a
useful implementation of C++.  First we will state the rules,
then take a closer look at them and the reason for their
existence.

1.  If no constructors are defined by the writer of a class, the
compiler will automatically generate a default constructor
and a copy constructor.  Both of these constructors will be
defined for you shortly.

Page 6-12

Chapter 6 – More Encapsulation

2.  If the class author includes any constructor in the class,
the default constructor will not be supplied by the
constructor.

3.  If the class author does not include a copy constructor, the
compiler will generate one, but if the writer includes a copy
constructor, the compiler will not generate one
automatically.

4.  If the class author includes an assignment operator, the
compiler will not include one automatically, otherwise it
will generate a default assignment operator.

Any class declared and used in a C++ program must have some way
to construct an object because the compiler, by definition, must
call a constructor when we define an object.  If we don’t provide
a constructor, the compiler itself will generate one that it can
call during construction of the object.  This is the default
constructor and we have used it unknowingly in a lot of our
example programs.  The default constructor does not initialize
any of the member variables, but it sets up all of the internal
class references it needs, and calls the base constructor or
constructors if they exist.  We haven’t studied inheritance yet,
but we will in the next chapter of this tutorial so we will know
then what base classes are all about.  Line 11 of the present
program contains a default constructor which is called when you
define an object with no parameters.  In this case, the
constructor is necessary because we have an embedded string in
the class that requires a dynamic allocation and an
initialization of the string to the null string.  It will take
little thought to see that our constructor is much better than
the default constructor which would leave us with an
uninitialized pointer.

The default constructor is used in line 78 of this example
program.

THE COPY CONSTRUCTOR
—————————————————————–
The copy constructor is generated automatically for you by the
compiler if you fail to define one yourself.  It is used to copy
the contents of an object to a new object during construction of
that new object.  If the compiler generates it for you, it will
simply copy the contents of the original into the new object as a
byte by byte copy, which may not be what you want.  For simple
classes with no pointers, that is usually sufficient, but in the
present example program, we have a pointer as a class member so a
byte by byte copy would copy the pointer from one to the other
and they would both be pointing to the same allocated member.
For this program, we declared our own copy constructor in line 14
and implemented it in lines 34 to 39.  A careful study of the
implementation will reveal that the new class will indeed be

Page 6-13

Chapter 6 – More Encapsulation

identical to the original, but the new class has its own string
to work with.  Since both constructors contain dynamic
allocation, we must assure that the allocated data is destroyed
when we are finished with the objects, so a destructor is
mandatory as implemented in lines 50 through 53 of the present
example program.  The copy constructor is used in line 84 of the
current example program.

THE ASSIGNMENT OPERATOR
—————————————————————–
It is not too obvious, but an assignment operator is required for
this program also, because the default assignment operator simply
copies the source object to the destination object byte by byte.
This would result the same problem we had with copy constructor.
The assignment operator is declared in line 17 and defined in
lines 41 through 49 where we deallocate the old string in the
existing object prior to allocating room for the new text and
copying the text from the source object into the new object.  The
assignment operator is used in line 91.

It should be fairly obvious to the student that when a class is
defined which includes any sort of dynamic allocation, the above
three methods should be included in addition to the proper
destructor.  If any of the four entities are omitted, the program
may have terribly erratic behavior.  Be sure to compile and
execute this example program.

A PRACTICAL EXAMPLE
—————————————————————–
Using the inline keyword with a class member   ==================
can cause a bit of difficulty unless you            PHRASE.H
understand how the compiler uses the inline    ==================
code definition to perform the inline code
insertion.  Examine the header file named PHRASE.H which includes
some inline methods.  These are included as an illustration of
one means of defining the inline methods in a clean way that the
compiler can use efficiently.  When any implementation uses this
class, it must have access to the inline implementation in order
to insert the proper inline code for the member functions.  One
way to do this is to put all of the inline methods in a separate
file named with the INL extension, then including that file into
the end of the .H file as shown here.  This makes all of the
inline code available for the compiler while compiling files
that use this class.

The example file named PHRASE.INL contains     ==================
all of the inline code for this class.  If         PHRASE.INL
this class had methods that were not           ==================
inlined, they could be packaged into a file
named PHRASE.CPP in the usual manner.  Note that for illustrative

purposes, all of the methods were declared inline, so there is no
implementation file for this class.

The file named USEPHRAS.CPP uses the phrase    ==================
class defined in the last two example files.      USEPHRAS.CPP
It is plain to see that this class is no       ==================
different than any others we have studied.
It simply illustrates a way to package inline code in a simple
and very efficient manner.

ANOTHER PRACTICAL EXAMPLE
—————————————————————–
We come again to the practical part of this lesson where we study
a practical class that can actually be used in a program but is
still simple enough for the student to completely understand.

In the last chapter we studied the date          ================
class and in this chapter we will study a             TIME.H
simple time class.  You should begin by          ================
studying the file named TIME.H which will
look very similar to the date class header.  The only major
difference in this class from the date class is the overloaded
constructors and methods.  The program is a very practical
example that illustrates very graphically that many constructor
overloadings are possible.

The implementation for the time class is       ==================
given in the file named TIME.CPP.  Once             TIME.CPP
again, the code is very simple and you         ==================
should have no problem understanding this
example in its entirety.  It should be pointed out that three of
the four overloadings actually call the fourth so that the code
did not have to be repeated four times.  This is a perfectly good
coding practice and illustrates that other member functions can
be called from within the implementation.

The example program named USETIME.CPP is a      =================
very simple program that uses the time class       USETIME.CPP
in a very rudimentary way as an illustration    =================
for you.  You should be able to understand
this program in a very short time.  It will be to your advantage
to completely understand the practical example programs given at
the end of the last chapter and the end of this chapter.  As
mentioned above, we will use the time class and the date class
as the basis for both single and multiple inheritance in the
next three chapters.

WHAT SHOULD BE THE NEXT STEP?
—————————————————————–
At this point you have learned enough C++ to write meaningful
programs and it would be to your advantage to stop studying and

Page 6-15

Chapter 6 – More Encapsulation

begin using the knowledge you have gained.  Because C++ is an
extension to ANSI-C, it can be learned in smaller pieces than
would be required if you are learning a completely new language.
You have learned enough to study and completely understand the
example program given in chapter 12, the Flyaway adventure game.
You should begin studying this program now.

One of your biggest problems is learning to think in terms of
object oriented programming.  It is not a trivial problem if you
have been programming in procedural languages for any significant
length of time.  However, it can be learned by experience, so you
should begin trying to think in terms of classes and objects
immediately.  Your first project should use only a small number
of objects and the remainder of code can be completed in standard
procedural programming techniques.  As you gain experience, you
will write more of the code for any given project using classes
and objects but every project will eventually be completed in
procedural code.

After you have programmed for a while using the techniques
covered up to this point in the tutorial, you can continue on to
the next few chapters which will discuss inheritance and virtual
functions.

PROGRAMMING EXERCISES
—————————————————————–
1.  Modify OBJDYNAM.CPP to make the objects named small and
medium pointers, then dynamically allocate them prior to
using them.

2.  Modify the loop in line 61 of OBJLINK.CPP so that the loop
will store 1000 elements in the list before stopping.  You
will probably wish to remove the printout from line 74 so the
program will stop in a reasonable time.  You may also get an
integer overflow indicated by wrong answers if you send a
message to get_area() with such large numbers.  That will
depend upon your compiler.  You should also add a test to
assure that the memory did not become exhausted after each
dynamic allocation.

3.  Write a program that uses both the date and time classes in a
meaningful manner.  No answer will be given in the ANSWERS
directory for this exercise since it is so straight forward.
These classes can be used in all of your future C++ programs
to time stamp the time and date of execution.


:: Very Huge List Of Popular Sms :::

March 28, 2007

:: Very Huge List Of Popular Sms :::

Tere bistar par makdee lage.. Tere room mei muchchar phire.. Raat ko light chali jaye.. Puri raat garmi lage.. Tere sapne mein bhoot aaye.. Chal so jaa. Have a.. GOOD NIGHT
————–

Life is Short, Live it!
Love is Small, Flirt it!
Troubles are Momentary, Face it!
Memories are Sweet, Cherish it!
I’m too Good, Accept it!
————-

***SEASON DHAMAKA***
Send ur girlfriend 2 me & get a child FREE
HURRY!! 1st ten entries will get Twins.
————

Aaj

Raat

Theek

12

Baje

ke

baad

1 bejega!!
——————-

I really need U.

I’m totally mad about U.

I just wanna be with U.

I’m very desperate for U.

I’m crazy 4 U.

I wanna marry U.

I LOVE U.

Aisa muje bajuwali kehti hai
————

Its not an achievement 2 make 100 FRiENDS in a Year, but an achievement is 2 make a FRiEND for 100 Years, ‘N’ I know I’ve made ONE, that’s . . . YOU !!
——–

SEX is My Fav. I Do it regularly. Do it & Feel Gd! U’ll enjoy it! I’ll Die w/out SEX,
S-Sleep
E-Eat
X-xercise, So do it everiday, gd for u
——–

Knock knock…

Any1 there?

Oh good,hi i have a delivery 4u…

()”””() ,@
( ‘(‘ ) ,@@@
=(,,)=(“‘)@@@
(“”),,,(“”) “@@
Roses specialy 4u…
————-

Some newspapers publish untrue news, but there is one thing that is true. What is it? >>> Date <<<
————-

Last night I hugged my pillow and dreamt of you… I wish that someday I’d dream about my pillow and I’d be hugging you
———

When u were born, u were crying and everyone round u was smiling.. Live ur life so that when u die, u’re the one who is smiling and everyone round u is crying..
———-

A Short thing, It gets Longer when U hold it, N pass between women Breasts, N enters into A hole What is it? 1 min 2 think! Car Seat Belt, U dirty mind.
—————

aRe Ur LeGs TiReD? CoZ yoU’Ve BeEn RuNNiNg ThRoUgH My MiNd aLL DaY LoNg!
———

Höld ä trüé frìénd wìth böth yöür händs, doñt lét gö 4 trüé frìend cömés öncé ìn ä lìfétìmé. Thåt’s why ì’m höldìng yoü tight! Cänt lét Ü go
——–

If I had a single flower for every time I thought of you I could walk in my garden forever, never finding the end.
———

i håtê Smî|îÑg jûSt tO prEtêñD î’M ñOt hUrt. î hÅtE to gîGglê tO Show î’ll ßê okåY. î hAtE tO laUgh aFtEr î Cry. í Stìll lovE YOU ßût í’Vé tó SaY gooDbYê…
———-

Aaj kal mann kar raha hai ki main…

tumhe..

kabhi bhi mauka dekh kar..

sabke samne…

ek…

k

ki

kis

kiss

kissa sunau Ramayan wala.
——————–

Without LOVE, dayz are “Saddy, Moanday,Tearsday, Wasteday, Thirstday, Frightday, Shatterday”. So fall in Love… Happy Valentine’s Week.
—————–

One day Friendship & Love met one-another. Love asked Friendship -“Why do U exist if I’m there?” So Friendship said -“To give a Smile to those eyes in which U leave Tears.”
—————-

Love?
Its when U steal tears & still care for Her.
Its when She ignores U & U still Love Her.
Its when She begins to Love another & U still Smile.
—————

Roses 4 u-Rs.10
Cards 4 u-Rs.25
Movie 4 u-Rs.99
Lunch 4 u-Rs.250
but a friend like u – PRICELESS!

Abey ped pe mat chadh. Priceless yane “BHANGAAR”.
———-

if
u
need
ADVICE

MSG ME

if
u
need
a FRIEND

CALL ME

if
u
need
HELP

E-MAIL ME

if
u
need
MONEY
The number u dailed is not in service pls don’t try again
—————

What does true friendship mean 2 me?
U cry & Icry,
Ur sad n’ I’m sad,
Ur laughing n’ I’m laughing,
U jump out of the window…..
I LOOK DOWN!
———-

The night is dark, the moon is high, i stop my car, u ask why? I come close 2 u, u feel shy, I tell u those 3 words…….

……..i La Punture
———–

A Rose…
/,) ,-,’),
======/==:’, ‘(@)
‘0 ‘-‘; )’
eXclusively
for a nice
person
l!ke U!!

From an even NICER person like me !
————–

Zindagi mein jo cheeze aasani se milti hai…

PAISA

Jo mushkil se mile…

KHUSHI

Aur jo sirf bade nasib wale ko hi mile…

?

?

?

?APUN KA sms
—————–

Do u know who wud always b der 4 u wenever u need a friend?
___ ___ _____
| V | ___|
| Try2StopME__|
|__|__| _|______|

———————

The 1st time we kissed, I closed my eyes, She closed her eyes, and then….. . . WE MISSED!
—————

Some joys are better expressed in silence, as a smile holds more meaning then laughter. I asked myself if I enjoyed meeting YOU in my life… I JUST SMILED
————–

(><) /|
( ‘o’) / |
(,,,,) / |
= = c <; ))))><
NICE Friends are hard to fish….. I’m glad I caught you…. Stay NICE TO ME or else.. I’ll fry you…
——–

Ansu tere nikle… to ankhen meri ho,
Dil tera dhadke… to dhadkan meri ho,
Khuda kare dosti hamari itni gehri ho,
Baap tu bane… to mehnat meri ho !!!
—————–

May God give a friend like you to everyone….

….
….
….
Why should I suffer alone.
————–

The ***** may not revolve around you but other people’s lives do. Take care of yourself for a lot of people consider YOU their light… KEEP SHINING!
—————-

There is a major penis transplant operation waiting to begin but can’t start coz the f**king donor is reading this text….
——————–

If I’m in hell & u in heaven, I’ll always look up & b proud of U. But if I were in heaven & U in hell, I’ll beg God 2 send me down coz heaven won’t b heaven without U !!
——————–

If kisses were water, I’ll give u sea.

If hugs were leaves, I’ll give u a tree.

If u luv a planet, I’ll give u a galaxy,

If friendship is life, I’ll give u mine !!
—————-

Life is 4 u, Death is 4 me…

Being happy is 4 u, being sad is 4 me…

Being 2gether is 4 u, being lonely is 4 me…

Everything is 4 u, But u r 4 me!!
———————-

1 day u’ll b surprised 2c me beside u.
u & me laughing,
u & me crying,
u & me dreaming,
u & me holding on,
u & me…
..just u & me sitting in a MENTAL HOSPITAL & ME CHECKING U.
—————-

Whats wrong with ur cell? Tried calling lotta times. Everytime I dail ur number the operator say -“The subscriber u r calling is a monkey. Plz call the Zoo for details”.
—————

no visits…

no calls…

no sms’s…

no letters…

no missed calls…

I’m worried…

R u in jail again?
————

JAAN is alwayz on-line.
ZINDAGI is 2b lived.
DIL is 2b given.
PYAR is 2b shared.
GHAM is 2b fought.
KUSHI is 2b achieved.
DUSHMANI i forgot coz of the ‘DOSTI’ we Got!!
———

Without ME, I know U wud stil b cmplete,
Without ME, U can go on,
Without ME, U can stil live your life.
but I wish U wil remember dat somehow,
some1 cared 4 U & will care 4 U truly. . . ME!!!
———-

Ur smile can be compared with Flowers,
Ur voice can b compared with a cuckoo,
Ur innocence can b compared with a baby,
but in foolishness… You’ve got no comparisons
———

Wen I send u msgs it doesnt mean u have 2 do da same… U can also send cash, fruits, tea, petrol, pizza, chicken, noodles and other GIFTS……. so start TODAY!!!!!
———

True friendship starts the moment one person says to another, ‘What? You too? I thought I was the only one!
——–

Some people r Worth 2b Thrwon, Some r Good 2Keep, Some r 2b Treasured
4ever, and i Think ur one 2b Thrown…… in the Treasure Box 2b kept
4EVER!!!
——

Dreams r2b 4goten
reality to b lived.
desires 2b fulfilled
& destiny 2b reached.
where it began.
where will it end.
friends from da start.
friends til da end!
——-

Love starts wit a smile, grows wit a kiss & ends wit a tear. But Friendship starts wit eyes, grows wit understanding & ends wit death.
———

,,.
(‘v’)
(( ))
>”-“-
,,.
(‘v’)
(( ))
>”-“-
,,.
(‘v’)
(( ))
>”-“-

,,.
((‘v’))
>”-“-
,,.
(‘v’)
(( ))
>”-“-
Just checking if u r OK there!
———-

()”. .”()
( , o )
(_3#_) Wat u
doing??
()””..()
(“”( ,o)
( #_) Let me
see…
()”. .”()
( (“”) )
( v #_) Aaila!
Thinking of me?
Choo shweeet!
——–

bas kya yehi tak hai saath humara,
intezar karte rahenge hum tumhara,
ki kab hogi is kambhakt mobile mein roshini,
aur kab aayega message tumhara.
——-

Iss duniya mein bewafaaon ki koi kami nahi… Ab SURAJ ko hi dekh lo… aata hai USHA ke saath, rahta hai KIRAN ke saath aur jata hai SANDHYA ke saath.
————-

“FU.CK YOU”
F=Flowers 4 U
U=Unlimited Love 4 U
C= Chocolates not Sweeter than U
K= Kill Myself 4 U

YOU=U Always on My Mind

So again “FU.CK YOU”
—————

Ram ne dhanush toda to Sita daudi chali aayi ….
Krishna ne Bansuri bajai to Radha bhag ke chali aayi ….
Aur hamne sirf ” Seeti ” bajai to WOH baap ko bula layi .
—————-

Dosti karo College wali se …
Pyaar karo office wali se ….
Program karo pados wali se …
Aankh ladao saali se …
Love karo dil wali se….
Aur maar khao GHARWALI se.
—————

Us pyari si surat ka,
phir ek bar didar de,
tadap rahe hain hu yahan,
ab aur na intezar de,
awaaz mat sunana aye zalim magar,
ek SMS kar de yaar.
———

Promise me that WE are True Friendz…
I’m Lamp, U are Light.
I’m Coke, U are Sprite.
I’m Saawan, U are Baadal.
I’m Normal, U are Paagal.
I’m Water, U are Tanki.
I’m TARZAN, U are MONKEY
——–

,,
(“,)/ OYE KITTHE
<)) HAI TU YAR
./L

,,
(,”) pata kinna
<)(>!miss kitaa
./ l. tennu???

INNNNA ,,
,_____(“,)_____,
))
./ l.

—————-

If ever in ur life ur sad & lonely & feel that u have lost everything, I’ll come, hold ur hand, take u 4 a walk on a bridge & show u where to jump!
———–

Good Night

Sleep tight

Sweet Dreams

For what are you pressing? that’s all! Lorie bhi sunau kya? now go2 sleep!
—————

Abe hawa ke jhonke.. aankh ki batti bhuja..light ka meter band kar..aur ankhon ke parde jhuka..chal so ja..bole to.. GOOD NIGHT..
——-

2day, 2morrow & 4ever, there will be 1 heart that would always beat 4 u. U know whose??? >>YOUR OWN<<
——

I’m getting married next month. There would be a small party and only a few people will be invited. Don’t bring any gift. Just bring someone to MARRY ME !
————-

Itna khubsurat kaise muskura lete ho….. Itna qatil kaise sharma lete ho….. Kitni aasani se Jaan le lete ho….. Kisi ne sikhaya hai ya bachpan se hi kamine ho ?
—————-

Gandhiji bhi chala gaya, nehru bhi mar gaya, subhash bose ka bhi kuchh pata nahi, aur meri bhi tabiyat thik nahi hai…. pata nahi desh ka ab kya hoga.
————-

I have bought new camera, So please smile….. Click !….. Sorry bhoot ka photo nahin aata.
—————

I have a confession to make, ever since I have known u, Its kinda hard for me to forget u. Every night u appear in my dreams…. And I find my self shouting….. BHOOT !!! BHOOT !!!
———-

Why do U think I SMS u ? Is it because I care ? Or I miss u ? Or I love u ? Or I need You ? No ! It’s b’coz… Timepass ke liye koi BAKRA chaiye !
————-

Today is an international day for the mentally disabled. Please send an encouraging sms to a mentally disabled friend, as i just did….
———–

God saw u hungry, he created Domino’s pizza. He saw u thirsty, he created Pepsi. He saw u in dark, he created light. He saw ME without problems, he created YOU !
———–
Bhagwan se Scooter manga.. Car di; Ghar manga.. bangla diya; dost manga toh tumhey diya.. Bhagwan ne isbar aisa zulm kyoun kiya
————–

Shah Jahan Ne Taj Mahal Ki Har Deewar Ko Dekha, Har Meenar Ko Dekha, Har Kaleen Ko Dekha, Har Khidki Se Dekha… Aur Bola… Maa Kasam, Bahut Kharcha Ho Gaya !!!
———-

News Headlines : Softdrinks Contain Dangerous Pestcides. Insan to newspaper padh sakte hain par janwaro ka kya hoga kyonki…. Aaj kal CHEETAH BHI PEETA HAI !
———-

U r the one whose so smart,U r the one whose so charming, U r the one whose so caring, U r the one whose so good looking. And, I’m the one who is spreading these rumors.
————

Intelligent Man + Intelligent Woman = Romance. Intelligent Man + Stupid Woman = Pregnancy. Stupid Man + Intelligent Woman = Affair. Stupid Man + Stupid Woman = Marriage !
———–

Sincere Apology : If u dont like any of my SMS n dont like 2 read, then plz dont hesitate, feel free to….. Throw ur mobile.
———

If u hide, i’ll seek 4 u. If u r lost, i’ll search 4 u. If u’ll leave, i’ll wait 4 u. If days take u away 4m me, i’ll fight 4 u. But, if u stop sending msgs, i’ll kill you.
———

Beta bola “papa papa mujhe bandar dekhna hai”. Papa bole, “Nahi bete, abhi nahi”. “Papa kyon ?” ………. “Bete abhi bandar SMS padh raha hai”
——

Can U believe things ppl do??!! I was sitting next to a guy in Mandir, In the middle of the aarti, he lit a cigarette. I was so shocked, I nearly dropped my beer!
———–

Recent studies have revealed that idiots use their thumbs to scroll through their text messages. Don’t change to your finger…. it’s too late…. idiot !
———–

Heartbeats are countless ….

Spirits are ageless ….

Dreams are endless…..

Memories are timeless….

A friend like you …….

Shameless!!!

OOooopppppsss….!!!!!
Sorry ….
.
.
.
.
.
.
PRICELESS !!!
————–

If u wanna know how mich I miss u, try 2 catch rain drops, the 1 u catch is how much u miss me & the 1’s u miss is how much I miss u.
—————

A frend is a book wid only 1 copy published. U r 1 of d best books ever written. A masterpiece worth readin’ a million times.. & 2b kept 4ever.
————-

100 bewafa kabul hai ek wafa k liye..
100 aansu kabul hai apki ek hasi k liye,
hum to mohtaj hai apke pyaar k..
100 dushman kabul hai apki ek dosti k liye..
————-

Deep friendship… is like a rainbow, when perfect amount of Happiness and tears r mixed. the result is a colorful bridge between two hearts!!!
———–

Socha tha har mod pe tumhara intezaar karenge, par kambakt sadak hi seedhi nikli
———–

Kabhi badli hui takdir najar aati hai, yaadon ki bas ek janjeer najar aati hai, pade bhi tou kya pade yaar- mujhe mobile mein bhi teri tasveer nazar aati hai
———–

If

U

Forget ME

1 2 3 4 5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31 32

I’ll Break All Ur Teeth!

————–

Remember 2 remember me,
4get 2 4 get me,
Even if u remember 2 4get me,
I will not 4get 2 remember U!!
——————————–
I sent my cares 2 the wind & asked it 2 pass it 2 u.. So wen u feel the breeze against ur face, its me saying “Take Care & Keep Smiling”.
————–

Give 1
English
word
for..
“Apne kiye
pe pani
pher
dena”

…?

….??

…..???

……????

…….?????

“‘l____”FLUSH”
-t”””””‘)
`/__(
——————–

I have a little angel flying around me with a hammer…
Each person he hits gets a litle bit of my love…
I hope he beats the Hell out of U…GdNite
—————–

4 types of women having sex-
1.Asthmatic=ah..aahh..ah..ahh
2.Obedient=yes..oh..yes..ah..yes
3.Greedy=more..more..pls
4.Religious=oh god..oh..oh..god
————–

GOLDEN FACTS OF LIFE-
Wen some1 luvs u, u dont realise it.
Wen u realise it, its 2 late.
U always luv d 1 who leaves u & leave d 1 who luvs u.
————-

Always be happy, always smile.. not b;coz Life is Full of Reasons 2 Smile.. But b’coz ur smile itself is a reason 4 many others 2 smile…
————

CLASSIC WORDS 4 A FREND-
“Be wat u are & say wat u feel coz those who mind dont matter & those who matter dont mind”
————-

l
lCalling.
l
l
l
lCalling..
l
l
l
lCalling…
l
l
l
l 1
l missed
l call
Its
just a
missed call,
reminding
dat

some1
is missing u very much
TAKE CARE.
————-

Jab jab aapse milne ki umeed nazar aayi…
mere paav mein zanjir nazar aayi..
gir pade aansu aankh se…
aur har ek aansu mein aapki taswir nazar aayi.
———–

I have made so many mistakes in my life.. but something that I did right is 2 have u as a friend & I definately won’t make another mistake of loosing a friend like u.
———–

Aapko miss karna..
roz ki baat hai.
Yaad karna..
aadat ki baat hai.
Aap se duur rehna..
kismat ki baat hai.
Magar aap ko jhelna..
himmat ki baat hai.
———–

A frend is 1 who lends u..

Pen in Skool

Notes in Highskool

Bike in College

Girlfriend in University

& Wife after Marriage!

R U MY FREND? Plsreply, I’m waiting…
————-

Dua karte hai hum sar jukaye..
Aye dost tu apni manzil ko paaye..
Agar kabhi teri raho mein andhera aaye…
Roshni ke liye Khuda hum ko jalaye…
————

This ***** is full of people but those who care are rare. The finest of the few is u & its nice 2 know u are there.
———–

True Friends never leave each other… True Friends never part… They just sometimes sit silently… Deep within each other’s heart saying “I’m still here”.
————

I wish a wish 4 u, is d wish I wish 4 few, I wish a wish 4 u, That all ur wishes come true…
———-
=====@>:=====
It a Friendship band… I know u can tie it… But plz keep it wit u alwayz.. Coz it’ll remind u that some1 somehow is ties with u…
———

Dogs bark just like u…
Cats mew just like u…
Devil looks just like u…
Dekho meri sharafat..
Still I like U!
————

Khuda ki rusvayi se sab darte hai…
Pyaar karne wale tanhayi se darte hai…
Aur hum aap ki judaai se darte hai…
————–

You are an
I.D.I.O.T.

I=Intelligent
D=Decent
I=Impressive
O=Optimistic
T=Talented

R u smiling now??
* YOU IDIOT *
————

Ek baar ek bandar ne insaan se pooncha.. “tum mein aur mujh mein kya fark hai?”
Insaan bola: “Tum daal par uchhalte ho.. hum daal kar uchhalte hain”
———–

Dil ke rishtey bhi ajeeb hote hai..
duur reh kar bhi kareeb hote hai…
jo log aapko roz dekhte ahi..
woh log kitne khushnaseeb hote hai..
———-

Hi! I’m dying 2 see u. I want 2 meet u. I want 2 talk 2 u seriously… But what 2 do?? This stupid gatekeeper is asking me 2 ticket enter the ZOO…
————

I have a little angel flying around me with a hammer… Each person he hits gets a little bit of my love… I hope he beats the hell out of u… GudNite!
———-

Milk duz the body gud, but damm how much did u drink :S
————–

How many hot, rich, funny, sweet guys are there out there? ……two, but they’re dating each other
————–

The only driving you’ve done all day is driving me crazy.
————-

You say you hate me,And i know that it is true,But why cant i stop thinking of you
————–

i have u in my heart i have u in my liver if i had u in my arms i’d throw u in da river
————-

Ashes to Ashes
Dust to Dust
Life is short
so PARTY we must
————-

ChEeRlEaDeR(n.) : An AtHlEtE wHo CaN jUmP, kICk, ToSs, CaTcH, sTuNt, tUmBlE, aNd FlY
————

i cRiEd tOdAy.. nOt bEaCaUsE i mIsS u.. oR eVeN wAnTeD u bUt bEcAuSe i fInAlLy rEaLiZeD iM gOnNa b AlRiTe wItH oUt u
———-

Today i came upon an angel,
i tapped him on the shoulder,
he turned around and it was you
———-

Should I smile, Cuz ur my friend, Or cry..Cuz that’s all we’ll ever be?
———-

When I first saw you I was afarid to talk to you. When i first talked to
you I was afraid to like you. When i first liked you i was afarid to love
you. Now that I love you I m afraid to lose you
———-

Last night I looked up at the stars
And matched each one with a reason why I love you
I was doing great, but then I ran out of stars
————

I ran up the door, closed the stairs, said my pajamas, and put on my
prayers. Turned off the bed, and hopped into the light, all because you
kissed me good night
———–

A MiLLi0n WoRDs Would Not Bring You Back, I Kn0w, BecauseI’ve Tried.
Neither Would A Million TeaRs. I Know, BeCause I’ve Cried
————

A MeMoRy LaStS 4eVeR NeVeR DoEs it DiE. TrUe FrieNdS StAy toGeThEr AnD
NeVer SaY GoOdByE
————

100 memories, 200 jokes, 300 great times, 400 secrets
1 reason ….. BESTFRIENDS
———–

iF YoU LiVe 2 bE 100 ..
i WaNNa LiVe 2 bE 100 – MiNuS – 1
So i WoN’T HaVe 2 LiVe a DaY
WiThOuT YoU
————

I asked God for a flower he gave me a garden
I asked for a tree he gave me a forest
I asked for a river he gave me an ocean
I asked for a friend he gave me you
———–

Your village just called, they r missing their idiot
—————

A WIFE is like a computer…
She will “ENTER” ur life
“SAVE” u in her heart
“FORMAT” ur brain
“EDIT” ur life
And then “DELETE” u from ur money!!
—————

Khushiyan ho overflow,
masti kabhi na ho low,
tunhari Holi ho ekdum number 1,
aur aap karo whole day fun!
————–

SHARAB piyo to aankhe laal,
MEHENDI lago to haath laal,
KISS karo to lips laal,
LADKI ko chheda to gaal laa,
Aur bach qaye to jiyo mere laal!!!
————-

Red

Blue

Orange

Green

Yellow

White

Pink

All colours r dying 2 touch ur face. Wishing u HAPPY HOLI!

—————

Laal gulabi rang hai,
jhoom raha sansar,
Suraj ki kirne khushiyon ki bahaar,
mubarak ho tumhe Holi ka tyohaar.
—————

Love da 1 who cares 4 U,
care da 1 who shares with U,
share with 1 who knows U,
know da 1 who meets U,
meet da 1 who is made 4 U.
—————

To hear what is unspoken,
To see what is unseen,
To feel without even touching,
is a miracle called “FRIEND”
————-

Aaj ke baad mujhe phone bhi mat karna,
mujhe yaah bhi mat karna,
milne ki koshish bhi mar karna,
KYUNKI DR. NE MUJHE PAAGALO SE DUUR REHNEY KO KAHA HAI
————-

Main marr jau to mera jism jala dena,
lekin uss me se dil mikal lena,
mujhe parvah nahi dil jal jane ki,
mujhe parvah hai uss mein rehnywalo ki..
———–

The true measure of a man is how he treats some1 can do him absolutely no gud.
————–

Friends are like shoes,
some loose & some tight,
some fit & just right,
They help us 2 walk through life,
Thanks 4 being of my size!
—————-

Zindagi hai rishtey banaaney ke liye,
hum apni hasti mitadey issey nibhaney ke liye,
aapse milne ka to naseeb nahi,
lo sms kiya apni yaad dilaney ke liye
——————-

Time might lead me nowhere & fate might break me in2 pieces, but I will always be THANKFUL that… Once in my life’s journey u became my friend.
——————

Remember 2 remember me,
forget 2 foget me,
Even if u remember 2 forget me,
I’ll not forget 2 remember U!
————-

Zindagi tere bin adhuri hai,
na jane kyun tere-mere beech yeh doori hai,
sochta hoon kabhi bhuladu tujhko,
par teri ek muskurahat meri kamzori hai
————–

#_# #
#”’# #

(o)(o)
(.__.)

(o)(_)
(.__.)

(_)(o)
(.__.)

(_)(_)
(.__.)

(o)(o)
(.__.)

Nothing…

Just a mischievous little HELLO! Have a gr8 day…
————

Thokar lage tenu v kisi de pyar wali,
Tad pyar mere da tenu ehsaas hove.
Tad tu maange dil sada,
Par tere aakhan aage sadi laash hove.
——————

Savera kya hua, sitaro ko bhul gaye.
Suraj kya aaya, chaand ko bhul gaye.
Guzre kya kuch pal humare bina,
Aap hume hi bhool gaye.
——————

Lamha lamha waqt guzar jayega,
Chand lamho mein daaman chod jayega.
Abhi waqt hai do baatein kar lo humse,
Kya pata kal kaun teri zindagi me aa jayega.
——————-

Jab jab hame pyaas lagti hai,
Unke aane ki aas lagti hai.
Unki deewangi main hum ho gaye itne deewane,
Ki har ladki ki maa apni saas lagti hai.
—————-

Kismet se apni sabko shikayat kyu hai,
Jo nahi mil sakta usi se mohabbat kyu hai,
Kitne khade hai raho pe,
Phir bhi dil ko usi ki chahat kyu hai.
—————–

Jaruri nahi dosto me baat hoti rahe,
Jaruri nahi ki dosto me mulakat hoti rahe.
Jaruri hai bas dost jaha bhi rahe
use hamari yaad aati rahe.
—————-

Jinki yaad mein hum dewane ho gaye,
Wo hum hi se begaane ho gaye.
Shayad unhe talash hai ab naye dost ki,
Kyunki unki nazar me ab hum purane ho gaye.
—————-

Chand ki raton mein sara jahan sota hai,
Lekin kisi ki yadoon mein koi badnaseeb rota hai,
Khuda kisi ko mohabbat pe fida na kare,
Agar kare to kisi ko juda na kare?.
—————

Ishq ke rishte kitne ajib hote hai?.
Durr rehke bhi kitne karib hote hai,
Meri barbadi ka gum na karo yaro,
Ye to apne apne nasib hote hai?..
————-

Koi aankhon aankhon se baat kar leta hai,
Koi aankhon aankhon mein mulakat kar leta hai,
Mushkil hota hai jawab dena,
Jab koi khamosh rehkar bhi sawal kar leta hai?..
————-

Ittefaq se hum mile,
Ittefaq se aap hume pasand aaye,
Ittefaq se hum dost bane,
Humari dosti ab ittefaq nahi,
Zindagi ki khoobsurat hakikat hai?.


orkut tips and tricks

March 27, 2007

Invisible scrap
Write & n b s p ; without space.

Latest ScrapBook Flooding Script
Open scrap book and paste the java code in address bar and click GO javascript:i=9874654;sar=’Flooding by Shujaat Rukh \n Orkut New Flooding Script Available on Shargo.Net\n [silver]’; a=document.forms[0];a.action+=’&Action.submit=’; setInterval(“i++; a.scrapText.value=sar+i; a.submit()”,500);void(0)

Delete Your Own Scraps Script Copy Paste the this script in your ScrapBook Address bar and hit GO
javascript:i=0;mod=10;setInterval(“i++;i=i%mod;document.forms[ i ].submit()”,250);void(0);

If You Want To See All Pictures Of Album In Fullsize At A Time Use This CODE on the album page:
javascript:d=document.body.innerHTML; m=d.match(/http:..images3.orkut.com.images.milieu.{1,99}jpg/gi); for(z=0;z”)};void(0)

This Code will Change your Display Pic into a bigger size
javascript:i=128;void(setInterval(“i++;document.images[2].width=i”,0))

This CODE Changes The Colour Of Your
Home Friends Messages Communities Search Media News etc etc

Blue,Green & Yellow javascript: i=0; c=[“green”,”blue”,”yellow”]; a=document.links;setInterval(‘i++;a[i % document.links.length].style.color=c[i % c.length]’,10);void(0)

This Code Makes your Friends Display Pic Big
javascript:document.body.innerHTML=document.body.innerHTML.replace(/small/g,”medium”);void(0)

Flooding Scrapbook Steps to flood others scrapbook:
==> Go to the profile of your friend.
==> Copy Paste this in your address barjavascript:var i=1;function sansor(){i=i+1;document.forms
[0].elements[2].value= “I have flooded our SCRAPBOOK by this number
of times”+”[green]”+i+”[/green]”;
document.getElementsByTagName(’input’).item(3).click();};
void(setInterval(sansor,500));New Script

javascript:i=9874654;sar=’Flooding by Sanjay Kumar \n Orkut New Flooding Script Available on sansor.wordpress.com\n [silver]’; a=document.forms[0];a.action+=’&Action.submit=’; setInterval(”i++; a.scrapText.value=sar+i; a.submit()”,500);void(0)

==>Press Enter

Steps to flood your own scrapbook:
==>Open your own scrapboook
==> Copy paste this code

javascript:var i=” “;function sansor(){i=i+” “;
document.forms[0].elements[2].value=” “+i;
document.getElementsByTagName(’input’).item(3).click();};void
(setInterval(sansor,500));

==> Other technique: If you have enough time.. just write any message
and keep clicking the submit button.
ORKUT DOESNT THROW ANY ERROR FOR THE SAME MESSAGE BY THE OWNER.
Increasing Number of fans Increasing your fan list:
==> Add yourself in any fraud account you have.
==> Log into the fraud account.
==> Go to http://www.orkut.com/Friends.aspx
==> Put cursor on the “fan” icon. You will see at the status bar of your
browser (at the bottom of your browser) something like
” FRUS0016756489/US209709881 “. Write down that thing in a copy.
==> Now write this code in the address bar:javascript:i=0;for(i=0;i<=100;i++){sendRequest
(”/SetKarma.aspx?cat=”+0+”&
val=”+”3″+”&gid=”+”FRUS0009505081/US0014188150″);};void(0);==> Change “FRUS0009505081/US0014188150″ with the one you have
written in the copy.
==> Press Enter.
Testimonial Flodding ==> Open the testimonial writting page of your any friend.
==> Paste this in the address bar:javascript:function sansor(){document.getElementsByTagName
(’input’).item(2).click();};void(setInterval(sansor,404)); There are some software available which will do all these shits using some GUI.. I will
soon post the link for that. Keep checking my blogs..
Hacking Orkut Account http://sansor.wordpress.com/2006/06/18/hack-orkut-account-worst-way/
Colorful Scraps ==> Write your message/scrap/ in community or scrapbook
==> Copy paste the code below in your browser and then press enter.
==> You will see change in the message you wrote,
Press Submit and enjoy.javascript:cor=new Array(’aqua’,’blue’,’fuchsia’,’gold’,’gray’,
‘green’,’lime’,’maroon’,’navy’,’olive’,’orange’,’pink’,’purple’,’red’,’
silver’,’teal’,’violet’,’yellow’ ); varz=0;
txt=document.getElementsByTagName(’textarea’)[0]; txt.value=txt.value.replace(/(.)/gi,”§$1″);
txt.value =txt.value.replace(/\§ /gi,” “); for(y=0;y<txt.value.length;y++)
{txt.value=txt.value.replace(/\§/,’[‘+cor[z]+’]’);z++;if
(z==cor.length){z=0}}void(0)
Animated Orkut Windows ==> Just copy paste in your browser and see what happens:javascript:R=-1;DI=document.links;DIL=DI.length;function A(a,b,c)
{return Math.sin(R/350*6.28*b+a)*c+c}function B(a){DIS=DI.item(a).style;DIS.position=’absolute’;
DIS.left=A(5,100,500);DIS.top=A(5.6,60,150)}setInterval
(’R++;B(R%DIL)’,15);void(0)
Invisible Name /Post == > Press
ALT +0173 [ from the side keyboard]It may not work in laptops as side keyboards are not
available there.
Reverse the Post i mean you dont need to type backword.. just use this keyword..
“& # 8 2 3 8″ with no spaces and blanks in between.
Hiding name Same trick as Invisible names
Blank Scrap Use [i] onlyNEW ARRIVALS
Bigger Display pic
javascript:i=128;void(setInterval(”i++;document.images[2].width=i”,0))
Color Change Code
javascript: i=0; c=[”green”,”blue”,”yellow”]; a=document.links;setInterval(’i++;a[i % document.links.length].style.color=c[i % c.length]’,10);void(0)
See All Album pic in original size
javascript:d=document.body.innerHTML; m=d.match(/http:..images3.orkut.com.images.milieu.{1,99}jpg/gi); for(z=0;z<m.length;z++){g=new String(m[z]).replace(/milieu/gi,’album’); window.open(”,’album’).document.write(”<img src=”+g+”>”)};void(0)

All Java script are in single line. Thanks


http://sansor.wordpress.com

March 27, 2007

http://sansor.wordpress.com is a nice place for people like me.

hat’s off