-1

I am learning C++ via a book. It told me to type this compile and link it in order for me to see if i can read it. But there are errors when I run this. What is the issue?

#include <iostream>  
int main()  
{   
int x = 8;      
int y = 6;      
std::cout << std::end1;     
std::cout << x - y << " " << x * y << " " << x + y;     
std::cout << std::end1;     return 0;   
}
sepp2k
  • 363,768
  • 54
  • 674
  • 675

1 Answers1

5

It should be std::endl; instead of std::end1;

Jérôme
  • 8,016
  • 4
  • 29
  • 35
  • Thank You so much!!! This book is making me worry if I should keep using it. Every time they type 1 it's either a "I' or "l" lol – stutterbox16 Jan 19 '15 at 22:07
  • Consult http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list – Blob Jan 19 '15 at 22:54