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!!!
![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 | {
|](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F9ea0e50e-bc61-40aa-a108-fd1d63d4d69b%2Feca046af-02ec-4785-9cef-a0730db10950%2Fxd4usvl_processed.png&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
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
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
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!!!
![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 | {
|](https://content.bartleby.com/qna-images/question/9ea0e50e-bc61-40aa-a108-fd1d63d4d69b/0d5bca42-730b-4da1-84c3-716ec8f4d351/q9qumv_thumbnail.png)
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…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
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](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,