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
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;
}
```
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
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)
To write to a binary file you use the ____ function.
A. fput() B. fputb() C. fwrite() D. write()
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