Sunday, October 27, 2013

Friend function example 1

#include<iostream.h>

#include<conio.h>

class A

{

int a;

public:

void getA()

{

cout<<"Enter a:";

cin>>a;

}

void putA()

{

cout<<"\na="<<a;

}

friend A add(A x, A y);

};

A add(A x, A y)

{

A z;

z.a=x.a+y.a;

return z;

}

int main()

{

A m,n,p;

clrscr();

m.getA();

n.getA();

p=add(m,n);

m.putA();

n.putA();

p.putA();

getch();

return 0;

}

Wednesday, October 23, 2013

Dynamic Constructor

#include<iostream.h>
#include<conio.h>
#include<string.h>
class A
{
char *nm;
int len;
public:
A()
{
len=0;
nm=new char[len+1];
}
A(char *nm1)
{
len=strlen(nm1);
nm=new char[len+1];
strcpy(nm,nm1);
}
void putA()
{
cout<<"\nName="<<nm;
}
};
int main()
{
char s[20];
clrscr();
cout<<"Enter Name:";
cin>>s;
A a1,a2(s);
a1=a2;
a1.putA();
a2.putA();
getch();
return 0;
}

Sunday, October 13, 2013

Class and object program of c++

#include<iostream.h>

#include<conio.h>

class student

{

    int rn,m1,m2,total;

    char nm[20];

    public:

        void getdata()

        {

            cout<<"Enter RollNo.:";

            cin>>rn;

            cout<<"Enter Name:";

            cin>>nm;

            cout<<"Enter m1 & m2:";

            cin>>m1>>m2;

        }

        void putdata();

};

void stud :: putdata()

{

    cout<<"\nRoll no.:"<<rn;

    cout<<"\nName:"<<nm;

    cout<<"\nM1:"<<m1;

    cout<<"\nM2:"<<m2;

    cout<<"\nTotal:"<<total;

}

int main()

{

    student s;

    clrscr();

    s.getdata();

    s.putdata();

    getch();

    return 0;

}

Saturday, October 12, 2013

Basic to class C++ Program

#include<iostream.h>
#include<conio.h>
class vector
{
int a[5];
public:
vector(int b[]);
void display();
};
vector :: vector(int b[])
{
for(int i=0;i<5;i++)
a[i]=b[i];
}
void vector :: display()
{
for(int i=0;i<5;i++)
cout<<"\n"<<a[i];
}
int main()
{
int x[5],i;
clrscr();
for(i=0;i<5;i++)
{
cout<<"Enter Value:";
cin>>x[i];
}
vector v=x;
v.display();
getch();
return 0;
}
For more programs comment please.

Friday, October 11, 2013

Array within class program C++

#include<iostream.h>

#include<conio.h>

class A

{

    int a[5];

    public:

        void getA()

        {

            for(int i=0;i<5;i++)

            {

                cout<<"Enter a["<<i<<"]:";

                cin>>a[i];

            }

        }

        void putA();

};

void A :: putA()

{

    for(int i=0;i<5;i++)

        cout<<"\n"<<a[i];

}

int main()

{

    A x;

    clrscr();

    x.getA();

    x.putA();

    getch();

    return 0;

}

Thursday, October 10, 2013

Array of Object C++ Program

#include<iostream.h>

#include<conio.h>

class A

{

int a;

public:

void getA()

{

cout<<"Enter a:";

cin>>a;

}

void putA()

{

cout<<"\na="<<a;
}

};

int main()

{

A x[5];

clrscr();

for(int i=0;i<5;i++)

x[i].getA();

for(i=0;i<5;i++)

x[i].putA();

getch();

return 0;

}

ADS: Discount on eBay with iPhone gold

Wednesday, October 9, 2013

End of Walmart and Bharti Enterprises joint connection in India

Ending of the joint venture of Walmart and Bharti enterprises on Wednesday 9th October 2013 and they are going to separate ways for business in Indian market.

Subsequently, the US retail major will buy out the Indian partner from their 50:50 wholesale cash and carry joint venture — Bharti Walmart, for an undisclosed sum.

In a joint statement, the companies said they have reached an agreement to independently own and operate separate business formats in India and discontinue their franchise agreement in the retail business.The agreement is subject to finalization of definitive agreements and receipt of the requisite regulatory approvals, it said.

Commenting on the development Bharti Enterprises vice-chairman and MD Rajan Bharti Mittal said: Bharti is committed to building a world-class retail venture and will continue to invest in Bharti Retail across all formats. We believe that with our current footprint of 212 stores, we have a strong platform to significantly grow the business and delight customers.

As part of the proposed transactions, Bharti will acquire the $100 million worth Compulsory Convertible Debentures (CCDs) held by Walmart in Cedar Support Services, a company owned and controlled by Bharti. Bharti Retail will continue to operate easy day retail stores across all formats and invest in and grow the business.

The investment in Cedar by Walmart is being investigated by the Enforcement Directorate following allegations of violations of norms. 

Given the circumstances, our decision to operate independently will be beneficial to both parties, Walmart Asia president and CEO Scott Price said. 

Walmart is committed to businesses that serve members and provide good returns for our shareholders, and will continue to advocate for investment conditions that allow FDI multibrand retail in India, he added. 

Through Walmart's investment in India, including our cash and carry business, supply chain infrastructure, direct farm program and supplier development, we want to serve India and its people, and continue to make important social and environmental contributions to the country, Price said. 

At present, there are 20 Best Price Modern Wholesale stores located at various places, including Amritsar, Zirakpur, Jalandhar, Kota, Bhopal Ludhiana, Raipur, Indore, Vijayawada, Agra, Meerut, Lucknow and Jammu. 

ADS: Get some Discount on iphone 5c and iphone 5s only on eBay

Saturday, September 21, 2013

Android licks KitKat

Google welcomes Android 4.4 KitKat OS version instead of unveiling Android 5.0 Key Lime Pie before 2013 ends. Google and Nestle made partnership to create the upcoming iteration of Android to 4.4 KitKat.

Android Licks KitKat:

After so many dessert-named versions of Android from Cupcake, Donut, Eclair  Froyo, Gingerbread, Honeycomb, and Ice Cream Sandwich to Jelly Bean, Android is going to offer something with even tastier and calorie-rich dessert - KitKat.

According to the Android's official Web site, 4.4 KitKat is official and it suspends the rumoured Android 5.0 Key Lime Pie expected in October 2013.

Android is the operating system that powers over 1 billion smartphones and tablets. Since these devices make our lives so sweet, each Android version is named after a dessert: Cupcake, Donut, Eclair  Froyo, Gingerbread, Honeycomb, Ice Cream Sandwich and Jelly Bean. As everybody finds it difficult to stay away from chocolate we decided to name the next version of Android after one of our favourite chocolate treats, KitKat.

Android 4.4 KitKat Features:
Google hasn't revealed any features yet of the upcoming Android 4.4 KitKat but instead, the company said: "our goal with Android KitKat to make an amazing Android experience available for everybody."
With this statement from Google, it is expected that KitKat will become accessible to Android-running devices with lower RAM such as 512 MB and older Android version such as 2.3 Gingerbread. This optimization has been rumored to be included in Android 5.0 Key Lime Pie.
ADS: Get Android mobile at low rate on eBay

Some facts about eBay

Hello Everyone....today I want to share one superb analysis among you...now a days online shopping is very popular and it should because this generation is totally for IT industry and it's various categories.... but eBay is best site according to me...because of following reason....
  • eBay has built an online person-to-person trading community on the Internet, using the World Wide Web.
  • Buyers and sellers are brought together in a manner where sellers are permitted to list items for sale, buyers to bid on items of interest and all eBay users to browse through listed items in a fully automated way.
  • The items are arranged by topics, where each type of auction has its own category.
eBay  History:
eBay was founded in Pierre Omidyar's San Jose living room back in September 1995. It was from the start meant to be a marketplace for the sale of goods and services for individuals.

eBay Global :
  • eBay Inc. has a global presence in 39 markets,including the U.S.
  • Marketplaces have more than 112 million active users worldwide.
  • In Q 4 2012, gross merchandise volume (GMV), the total value of all successfully closed items on eBay Inc.'s trading platforms, was $19 billion and $67 billion for Full Year 2012.
  • Marketplaces net revenues totaled $2 billion in Q4 2012 and $7 billion for Full Year 2012.
  • eBay users worldwide trade $2,457 worth of goods on the site every second.
  • The most expensive item sold on eBay to date is a private business jet for $4.9 million.

Monday, September 2, 2013

Funny images for facebook fun





ADS: gadgets at big discount only on eBay

Facebook funny comment images

Here are some images for facebook funny comments... Try and make your friends laugh





Keep visiting for much more images.... New images will be post soon by one of the admin.

ADS: visit this eBay and get earned by affiliated marketing......

Saturday, August 31, 2013

Some funny photos for Facebook comments

Here is my collection for the image comments of  Facebook.




Hope you will like these types of comments... Stay on this blog for more funny pics...

ADS: get gadgets from eBay

Monday, June 24, 2013

Some facts that makes you proud to be an Indian!!!

Hello all Indians .. just now Indian cricket team has won ICC Champions Trophy... Champions ka champion.. this things are making us proud ... There are lots of things that make all Indians to proud to be a real Indian...

  • India has lowest call rates on the earth and the fastest growing telecom market.
  • India has largest numbers of news channels
  • Indian banks are among top 500 financial brands.
  • World's first university in takshshila established in 700 bc


Monday, June 17, 2013

Some blogging tips

Here  I am going to write some useful tips for daily user of blogger. I hope this will help you a lot.

  • First of all your ability to write english grammatically should be understandable and should be in pattern.
  • The name you give to the blog should be attractive so that it will catch the attention of readers.
  • Try to write in easy understandable language so that the reader will not get bored during reading.
  • Put some images related your blog title and post. It will create good impression on reader.