You're using incorrect comments. // is for single line comments, such as...
Code:
// dem01-1.cpp
// John C++. Molluzzo
#include <iostream>
using namespace std;
int main()
{ //This is the body of the function main (MAKE SURE THIS IS ON ONLY ONE LINE!)
cout << "This is our first C++ program." << endl;
cout << "It works!!!" << endl;
return 0;
}
To do more than one line of comments, use this instead.
Code:
// dem01-1.cpp
// John C++. Molluzzo
#include <iostream>
using namespace std;
int main()
{ /* This is the body of the
function main()*/
cout << "This is our first C++ program." << endl;
cout << "It works!!!" << endl;
return 0;
}
The problem with your code is that your cout arrows should be pointing <<, and cin statements should be pointing >>. Also, only put the semicolon at the end of the line, not at the end of what you're couting. Also, you forgot the end quote on "my name is maria". Your code should look like this:
Code:
cout << "My name is Maria" << endl;
I'm sorry, but I refuse to tell you what's wrong with your code. Please reference this page for information on how to start your program. (I'll hint: it's pretty much all wrong).