Identify the compiler errors and state what is wrong with the code.

```
#include
using namespace std;
class Printer
{
private:
int pages = 0;
int mode = 2;
public:
Printer();
};
int main()
{
Printer 4HP2;

```


```
#include
using namespace std;
class Printer
{
private:
int pages = 0; << can’t assign values here in class
int mode = 2; << the = 0 is virtual function syntax
public:
Printer();
};
int main()
{
Printer 4HP2; << can’t use 4 as first digit in var name
<< needs a return 0; and close }
```

Computer Science & Information Technology

You might also like to view...

________ reality is the addition of digital information directly into our reality, either to add more detail or to remove unwanted visual effects

A) Augmentative B) Altruistic C) Assisted D) Alternate

Computer Science & Information Technology

Auto Fill (as it applies to Excel 2010)

A) is adjustable so you can display more or less characters in a column. B) helps carry over the fill to the remaining worksheets. C) is the fastest way to type A1 in the name box. D) enables you to copy the contents of a cell or to continue a sequence by dragging the fill handle.

Computer Science & Information Technology

____ is the key to setting permissions.

A. Encryption B. Masking C. Granularity D. Synchronization

Computer Science & Information Technology

What is the shortcut key to define a clipping mask in the Layers panel?

What will be an ideal response?

Computer Science & Information Technology