Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ in xcode (Mac) help 1. 2. By File By Type 0 unknown type name coORD 0 Unknow

ID: 3837377 • Letter: C

Question

C++ in xcode (Mac) help

1.

2.

By File By Type 0 unknown type name coORD 0 Unknown type name SMALL RECT Unknown type name HANDLE Use of undeclared identifier 0 Use of undeclared identifier Unknown type name HANDLE 0 Use of undeclared identifier 0 Unknown type name COORD O Implicit instantiation of undefined template std: 0 Use of undeclared identifier "Sleep: did you mean 'sleep'? 0 Use of undeclared identifier 0 Use of undeclared identifier Use of undeclared identifier 0 Use of undeclared identifier 0 Use of undeclared identifier "main" must return "int" "iostream.h" file not found Using directive refers to defined namespace std 0 unknown type name fstream ISO C does not allow conversion from string literal to A ISO C. does not allow conversion from string literal to ISO C does not allow conversion from string literal to 0 Binclude iostream. ainclude cfstrean.h> ainclude iomanip-ho. ainclude qmath.hp. sinclude cconio.h> include cstring. ho using namespace std: fstrean datafile char Anual[s] char enonthselect ch(in) case 1 return "January" case 2 return February case 3 return "March" case 4 return April return "May" case 5 return "June case 6 return "July case 7 return "August case B return "September" case 9 case 10 return!" october" case 11 return November" 12 return "December" case return ("Not a valid Choice" int readFile dataFilemm NULL)H cout

Explanation / Answer

In screen shot1- inmonths[][] is a 2 D array of type char for which you have taken a parameter [in] of int type (to select switch case) hence the error of char conversion to string ASCII.
getch() function works with conio.h header which is not valid in mac OS environment
using namespace std is mispaced hence the prefixes of it like cout,cin have become undelcared identifiers

In the screen shot2- #include<conio.h> header file is not valid when you work in linux environment (mac by itself works with linux flavour OS)

check with the switch case variable and function calling for appropriate month and then display the temperature individually. Go with templates for individual function call.

Good luck.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote