12 #include 13 #include "complex.h" 14 #include 15 using namespace std; 16 int main(int argc, char **argv) 17- int main() { 18 Complex ze(3.6, 4.8); Complex z1(4, -2); 19 20 } 21- { 22 23 24 25 Complex ze(3.6,4.8); Complex z1(4,-2); Complex z2(-4,2); Complex 73(-4,-3): complextester.cpp:17:1: error: expected initializer before 'int' 17 | int main() { | ANN complextester.cpp:21:1: error: expected unqualified-id before '{' token 21 | { |
12 #include 13 #include "complex.h" 14 #include 15 using namespace std; 16 int main(int argc, char **argv) 17- int main() { 18 Complex ze(3.6, 4.8); Complex z1(4, -2); 19 20 } 21- { 22 23 24 25 Complex ze(3.6,4.8); Complex z1(4,-2); Complex z2(-4,2); Complex 73(-4,-3): complextester.cpp:17:1: error: expected initializer before 'int' 17 | int main() { | ANN complextester.cpp:21:1: error: expected unqualified-id before '{' token 21 | { |
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 12SA
Related questions
Question
Please help me fix the following errors!!!

Transcribed Image Text:12 #include <iostream>
13 #include "complex.h"
14 #include <cstdlib>
15 using namespace std;
16 int main(int argc, char ** *argv)
17 - int main() {
18
19
Complex ze(3.6, 4.8);
Complex z1(4, -2);
20 }
21 - {
22
23
is 00
24
25
Complex ze(3.6,4.8);
Complex z1(4,-2);
Complex z2(-4,2);
Complex 73(-4,-3):
complextester.cpp:17:1: error: expected initializer before 'int'
17| int main() {
| ANUN
complextester.cpp:21:1: error: expected unqualified-id before '{' token
21 | {
|
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 2 images

Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question
Can you please retype this
Please help me fix the following errors!!!

Transcribed Image Text:12 #include <iostream>
13 #include "complex.h"
14 #include <cstdlib>
15 using namespace std;
16 int main(int argc, char ** *argv)
17 - int main() {
18
19
Complex ze(3.6, 4.8);
Complex z1(4, -2);
20 }
21 - {
22
23
is 00
24
25
Complex ze(3.6,4.8);
Complex z1(4,-2);
Complex z2(-4,2);
Complex 73(-4,-3):
complextester.cpp:17:1: error: expected initializer before 'int'
17| int main() {
| ANUN
complextester.cpp:21:1: error: expected unqualified-id before '{' token
21 | {
|
Solution
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning

C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning

C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,