Write a program in c to implement a class to represent complex members . Include member function add and multiply two complex no .Overloaded assignment operator=
Classified in Computers
Written at on English with a size of 87.8 KB.
C++
LET
LET'S LEARN ABOUT BASIC C++
SOURCE : GEEKS FOR GEEKS
LET'S LEARN ABOUT LOOPS
FOR LOOP
#include <iostream>
usingnamespace std;
intmain(){for(int i =1; i <=5; i++)
{ cout <<" Good morning \n";}
return0;}
WHILE LOOP
#include <iostream>
usingnamespace std;
intmain()
{int i =0;// initialization expressionwhile(i <5)
// test expression
{ cout <<"Good morning\n"; i++;// update expression}
return0;}
DO WHILE
#include <iostream>
usingnamespace std;
intmain(){int i =2;// initialization expressiondo{ cout <<" Good morning\n"; i++;// update expression}
while(i <1);//
test expression
return0;}
SOME IMPORTANT C++ INTERVIEW QUESTIONS
1. What are the different data types present in C++?
The 4 data types in C++ are given below:... Continue reading "Write a program in c to implement a class to represent complex members . Include member function add and multiply two complex no .Overloaded assignment operator=" »