|
-
August 18th, 2009, 01:16 PM
#1
Complete C++/programming newb in need of help
Code:
int main()
{
int x = 5;
int y = 7;
std::cout << std::end1;
std::cout << x + y << x * y;
std::cout << std::end1;
char response;
std::cin >> response;
return 0;
}
I'm writing code out of a book for an exercise (this is literally the second one I've ever written, after Hello World). I can't find any typos after looking it over again and again, but for some reason it won't compile. The compiler error message reads 6 C:\Dev-Cpp\Examples\Untitled2.cpp `end1' is not a member of `std'. The same reads for line 8. I'm kind of confused here, since I wrote it exactly how it is in the book. Any and all help is deeply appreciated.
Last edited by pentago; August 19th, 2009 at 10:44 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|