Identify the compiler errors, and state what is needed to eliminate the error(s).

```
// Read in the user’s name from the keyboard
and show it to the screen. */
#include
int main()
{
string Name;
cout “Please enter your full name. ”;
cin >> Name;
cout << “\n\n your name is ” << answer;
return 0;
}
```


```
// Read in the user’s name from the keyboard
and show it to the screen. */ //this line not valid comment
#include //need using namespace std;
int main()
{
string Name;
cout “Please enter your full name. ”;// need cout <<
cin >> Name; //this compiles, but better to use getline
cout << “\n\n your name is ” << answer; //answer not declared!
return 0;
}
```

Computer Science & Information Technology

You might also like to view...

The background-color property can be used to change both the background color of the table and individual rows and cells

Indicate whether the statement is true or false

Computer Science & Information Technology

Using string library functions requires that the file string.h be included in your program before the function is called.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

To write to a binary file you use the ____ function.

A. fput() B. fputb() C. fwrite() D. write()

Computer Science & Information Technology

What protocol improves WPA encryption by adding Message Integrity Checks, Extended Initialization Vectors, Per-packet key mixing, and a Re-keying mechanism to improve encryption?

A. WEP B. TKIP C. 802.1X D. RADIUS

Computer Science & Information Technology