Skip to main content

complex no

complex no usig operator overloading


#include
#include
class complex
{
float r,l;
public:
void setdata()
{
cout <<"Enter complex number"; cin >>r>>l;
}
void show()
{
cout < }
complex operator +(complex p)
{
complex temp;
temp.r=r+p.r;
temp.l=l+p.l;
return(temp);
}
};
void main()
{
clrs r
complex c1,c2,c3;
c1.setdata();
c2.setdata();
c3=c1+c2;
c3.show();
gecth();
}

Comments

Popular posts from this blog

Ssc combined graduate level exam syllabus and exam detail

q Tier-I of the Examination: General Intelligence & Reasoning : It would include questions of both verbal and non-verbal type. This component may include questions on analogies, similarities and differences, space visualization, spatial orientation, problem solving, analysis, judgment, decision making, visual memory, discrimination, observation, relationship concepts, arithmetical reasoning and figural classification, arithmetic number series, non-verbal series, coding and decoding, statement conclusion, syllogistic reasoning etc. The topics are, Semantic Analogy, Symbolic/Number Analogy, Figural Analogy, Semantic Classification, Symbolic/Number Classification, Figural Classification, Semantic Series, Number Series, Figural Series, Problem Solving, Word Building, Coding & de-coding, Numerical Operations, symbolic Operations, Trends, Space Orientation, Space Visualization, Venn Diagrams, Drawing inferences, Punched hole/pattern –folding & unfolding, Figural Pattern – folding...

27 Simple mehndi designs for hands for Karwa Chauth

The most  simple mehndi designs for hands  for Karwa Chauth 2014 Karwa Chauth  is around the corner and I am so excited about getting mehndi done! This time I plan to go with a simple yet quirky design. Don’t want my hands full, however it needs to be a style statement for this year’s most awaited festival for us ladies! There are some basic categories of mehndi designs, such as Gujrati, Rajasthani, Marwari,  Arabic  and African  patterns to choose from. They have certain prominent motifs or symbols that distinguishes one from the other. I just can’t seem to stop experimenting with these styles. From  circles to squares , peacocks and paisleys , checks and dots and what not. But my all-time favorite is a simple, curling vine, of course finger tips covered with thick coating of aromatic mehndi (which is so traditional). Quirky patterns include  traditional  as well as non-traditional patterns tweaked to one’s own liking. This includ...

‘Pratyusha Didn’t Hang Herself But Instead It Was Rahul Who Did It’, Claim Pratyusha’s Friends

The Balika Vadhu actress Pratyusha Banerjee was one of the most loved TV actresses ever and her suicide has left the whole India shocked. Even though earlier also actresses have committed suicide, it won’t be wrong to say that Pratyusha had a great fan following and that’s why not only her family but the whole nation is lamenting her death. Another reason for the same is that people knew her as a bubbly girl who was full of life and such a catastrophic step was not at all expected from her. However, one after another fact has come to sight about the actress and her personal life on a regular basis and no doubt, the revelations are shocking to the core. Besides, they are making the case even more complicated. As per reports, she even made attempts of committing suicide previously twice and here again comes a shocking thing! While police claims that it is a suicide case, Pratyusha’s friends are determined to fight for her so that justice can be done. They are of the opinion tha...