Fix this probem

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

Please Fix this probem.

address: dass
1
#include <iostream>
names: dass
2
#include <conio.h>
main 0: void
#include <string.h>
using namespace std;
3
4
5
class names
6日{
public:
char name [50];
void read1 ()
7
8
9
10日{
11
cout<< "Enter the name of person:";
12
cin>>name;
}
};
13
14
15
class address
16 E {
char add [ ];
17
18
names n;
public:
void read2 ()
21 E {
n.read1 ();
cout<« "Enter address of person:";
cin>>add;
25 F }
void concatenate ()
27 E {
strcat (n.name, add);
cout<« "Name and address of person="N.name;
}
31 - };|
void main ()
33 E {
clrscr ();
19
20
22
23
24
26
28
29
30
32
adress A;
A.read2 ();
A.concatenate ();
getch ();}
35
36
37
38
Compiler (19)
Resources dh Compile Log V Debug 3 Find Results
Close
Line
Col
File
Message
C:\Users\M. At global scope:
32
12
C:\Users\Mo. [Error] ":main' must return 'int'
C:\Users\M.
In function 'int main0':
34
C:\Users\Mo. [Error] 'clrscr' was not declared in this scope
C:\Users\Mo... [Error] 'adress' was not declared in this scope
35
1
36
C:\Users\Mo. [Error] 'A' was not declared in this scope
mmm
Transcribed Image Text:address: dass 1 #include <iostream> names: dass 2 #include <conio.h> main 0: void #include <string.h> using namespace std; 3 4 5 class names 6日{ public: char name [50]; void read1 () 7 8 9 10日{ 11 cout<< "Enter the name of person:"; 12 cin>>name; } }; 13 14 15 class address 16 E { char add [ ]; 17 18 names n; public: void read2 () 21 E { n.read1 (); cout<« "Enter address of person:"; cin>>add; 25 F } void concatenate () 27 E { strcat (n.name, add); cout<« "Name and address of person="N.name; } 31 - };| void main () 33 E { clrscr (); 19 20 22 23 24 26 28 29 30 32 adress A; A.read2 (); A.concatenate (); getch ();} 35 36 37 38 Compiler (19) Resources dh Compile Log V Debug 3 Find Results Close Line Col File Message C:\Users\M. At global scope: 32 12 C:\Users\Mo. [Error] ":main' must return 'int' C:\Users\M. In function 'int main0': 34 C:\Users\Mo. [Error] 'clrscr' was not declared in this scope C:\Users\Mo... [Error] 'adress' was not declared in this scope 35 1 36 C:\Users\Mo. [Error] 'A' was not declared in this scope mmm
Expert Solution
steps

Step by step

Solved in 3 steps with 1 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