Identify the compiler errors and state what is wrong with the code.
```
#include
using namespace std;
class Photo
{
private:
string subject;
double amount; //of light in lumens
public:
Photo();
Void SetLight(double x){amount = x;}
}
int main()
{
Photo OneOfMe;
OneOfMe.subject = “Meg the cute girl.”;
OneOfMe.SetLight(100.0);
```
```
#include
using namespace std;
class Photo
{
private:
string subject;
double amount; //of light in lumens
public:
Photo();
Void SetLight(double x){amount = x;} << void, not Void
}
int main()
{
Photo OneOfMe;
OneOfMe.subject = “Meg the cute girl.”;<< can’t access private
OneOfMe.SetLight(100.0); << need return 0; and close }
```
You might also like to view...
If no suggested spellings are displayed, click the ____________________text box, then type the correct word.
Fill in the blank(s) with the appropriate word(s).
Methods that are not interface methods and that do not provide implementations must be declared using keyword _______ .
Fill in the blank(s) with the appropriate word(s).
In OpenOffice Base, the box that displays all of the fields in a table or query upon which another object is based is called the field ________
Fill in the blank(s) with correct word
Describe the three different hubs that are available in the market today.
What will be an ideal response?