Program wont start "identifier 'end1' is undefined"

My program wont start up because of "end1" (Entirely new to C++ so forgive my simple mistakes)

Program:
1
2
3
4
5
6
7
8
9
10
11
12
//Game Over
// My first program

#include <iostream>
using std::cout;
using std::end1;

int main()
{
	cout << "Game Over!" << end1;
	return 0;
}


Error:
1
2
3
4
5
1
1>  game_over.cpp
1>c:\users\sean\desktop\c++ proj\game_over\game_over\game_over.cpp(6): error C2039: 'end1' : is not a member of 'std'
1>c:\users\sean\desktop\c++ proj\game_over\game_over\game_over.cpp(6): error C2873: 'end1' : symbol cannot be used in a using-declaration
1>c:\users\sean\desktop\c++ proj\game_over\game_over\game_over.cpp(10): error C2065: 'end1' : undeclared identifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Error: identifier "end1" is undefined
Last edited on
Line 10 end1 should be endl

Lower case L not the number 1
*facepalm*
Why l though what does that mean?
The 'l' stands for 'line.' endl = end line.
Thank you very much
Topic archived. No new replies allowed.