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
icon
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 | {
|
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
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
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 | {
|
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
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Array
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning