i am having alot of problems as my beginning in prgramming.
Here is a copy and paste from something i tried to compile and recieved errors and it looks exactly like the one i copied from the source and tried.
// listing 2.2 using cout
#include <iostream.h>
int main()
{
cout << "Hello there.\n";
cout << "Here is 5: " << 5 << "\n";
cout << "A manipulator end1 writes a new line to your screen." <<
Âendl;
cout << "here is a very big number:\t" << 70000 << end1;
cout << "here is the sum of 8 and 5:\t" << 8+5 << end1;
cout << "here is a fraction:\t\t" (float) 5/8 << end1;
cout << "and a very big number:\t" << (double) 7000 * 7000 <<
Âendl;
cout << "don't forget to add your name Jewa:\n";
cout << "Jewa is now a programmer:\n";
return 0;
}
and here are the errors i am recieving when im trying to compile it.
c:\documents and settings\administrator\my documents\my c++ projects\iamaprogrammer.cpp: In function `int main()':
c:\documents and settings\administrator\my documents\my c++ projects\iamaprogrammer.cpp:9: parse error before character 0302
c:\documents and settings\administrator\my documents\my c++ projects\iamaprogrammer.cpp:10: `end1' undeclared (first use this function)
c:\documents and settings\administrator\my documents\my c++ projects\iamaprogrammer.cpp:10: (Each undeclared identifier is reported only once
c:\documents and settings\administrator\my documents\my c++ projects\iamaprogrammer.cpp:10: for each function it appears in.)
c:\documents and settings\administrator\my documents\my c++ projects\iamaprogrammer.cpp:12: parse error before `)'
c:\documents and settings\administrator\my documents\my c++ projects\iamaprogrammer.cpp:14: parse error before character 0302
____
I cant figure out what i did wrong, heh. plz help... thanks and now im going to continue reading about what i just wrote. thanks