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

#Include

int main
{
float x;
y = +8.0;
cout << x << and << y values;
}


#Include //#include
//(also needs using namespace std;
int main // needs main()
{
float x; //y is undeclared, declare as float or double
y = +8.0;
cout << x << and << y values;
} // should have return 0 too, since int return

Computer Science & Information Technology

You might also like to view...

Inheritance enables the programmer to

a) Reuse code b) Allow for Darwinian selection of class features as inheritance proceeds c) Better model the real world d) Provide facilities for class libraries.

Computer Science & Information Technology

A computer possessing which type of architecture maintains separate stacks at both the Network and Transport layers?

A. hybrid-layer B. dual-transport C. dual-IP-layer D. dual-stack

Computer Science & Information Technology

The Lock Drawing Mode feature enables the creation of multiple shapes of the same type

Indicate whether the statement is true or false

Computer Science & Information Technology

The Microsoft Expression Web Online command provides access to articles and discussions with other Expression Web users; however, the command does not allow access to video tutorials.

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

Computer Science & Information Technology