Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

Dear sir,

This program Correct or wrong.

If correct Which compler we use. Please help

C:\Users\Mohit Bhagat\Documents\C++ Code\QBS Programm Compling.cpp - Dev-C++ 5.11
File Edit Search View Project Execute Tools AStyle Window Help
南昌
88 O O 88
db
(globals)
QBS Programm Compling.cpp
#include <iostream.h>
class complex
Project Classes Debug
E- complex: class
main 0 : Void
2
private:
float real, img;
4
5
public :
complex ()
6
7
8 E {
real=0;
img=0;
9
10
11
12
Complex(float r, float i)
13 E {
real = r;
img = i;
14
15
16
17
Complex operator +(complex C)
18 - {
Complex temp;
temp.real=real+c.real;
temp.img=img+C.img;
return(temp);
- }
Void display ()
25 E {
19
20
21
22
23
24
26
Cout<<real<<"+j"<<img<<endl;
27 F }
28
};
Void main ()
29
30 - {
complex c1 (2, 5), с2(4, 6), с3;
c3=c1+c2;
cout<<"c1="; c1.Display ();
cout<<"c2="; c2.Display ();
cout<<"c3="; c3.Display ();
}
31
// equivalent to c1.operator+(c2)
32
33
34
35
36
37
88 Compiler (2) G Close
Resources dh Compile Log V Debug 3 Find Results
Line
Col
File
Message
1
22
C:\Users\Mohit Bhagat\Documents\C++ Code\QBS Program. [Error] iostream.h: No such file or directory
compilation terminated.
Transcribed Image Text:C:\Users\Mohit Bhagat\Documents\C++ Code\QBS Programm Compling.cpp - Dev-C++ 5.11 File Edit Search View Project Execute Tools AStyle Window Help 南昌 88 O O 88 db (globals) QBS Programm Compling.cpp #include <iostream.h> class complex Project Classes Debug E- complex: class main 0 : Void 2 private: float real, img; 4 5 public : complex () 6 7 8 E { real=0; img=0; 9 10 11 12 Complex(float r, float i) 13 E { real = r; img = i; 14 15 16 17 Complex operator +(complex C) 18 - { Complex temp; temp.real=real+c.real; temp.img=img+C.img; return(temp); - } Void display () 25 E { 19 20 21 22 23 24 26 Cout<<real<<"+j"<<img<<endl; 27 F } 28 }; Void main () 29 30 - { complex c1 (2, 5), с2(4, 6), с3; c3=c1+c2; cout<<"c1="; c1.Display (); cout<<"c2="; c2.Display (); cout<<"c3="; c3.Display (); } 31 // equivalent to c1.operator+(c2) 32 33 34 35 36 37 88 Compiler (2) G Close Resources dh Compile Log V Debug 3 Find Results Line Col File Message 1 22 C:\Users\Mohit Bhagat\Documents\C++ Code\QBS Program. [Error] iostream.h: No such file or directory compilation terminated.
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY