Identify the compiler errors and state what is wrong with the code.
```
#include
using namespace std;
Class Birds
{
private:
string name;
float size;
public:
Birds();
void SingASong();
}
void SingASong()
{
cout << name << “ says cheep cheep”;
}
int main()
{
Birds Sparrows[30];
Sparrows.SingASong[0];
}
```
```
#include
using namespace std;
Class Birds << should be class not Class
{
private:
string name;
float size;
public:
Birds();
void SingASong();
} << need a ; here
void SingASong() << need a Bird:: here
{
cout << name << “ says cheep cheep”; << won’t know name until
it is part of Bird::
}
int main()
{
Birds Sparrows[30];
Sparrows.SingASong[0]; << the [0] should be Sparrows[0].
}
```
You might also like to view...
Why might you group or sort the same data differently in a report? What advantages does grouping and sorting offer in terms of understating report data?
What will be an ideal response?
In Excel Online, the Share Survey feature creates a link providing access to a web form without giving the end users access to the collected results
Indicate whether the statement is true or false
If a one-dimensional array contains five elements, its Length property contains the number 5 but its highest subscript is 3.
Answer the following statement true (T) or false (F)
A(n) ________ monitors keystrokes with the intent of stealing passwords, login IDs, or credit card information.
What will be an ideal response?