error: 'end1' was not declared in this scope

I get the error at line 17

error: 'end1' was not declared in this scope

But there is a n end one here is my code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <iostream>
#include <cstdio>
#include <cstdlib>

using namespace std;
int main(int nNumberofArgs, char* pszArgs[])
{
int nMonth;
cout << "Please Enter the day and Month";
cin >> nMonth;


switch (nMonth)

{
    case 1/1:
    cout << "Its the first of January" << end1;
    break;
    case 2/1:
    cout << "Its the second of January" << end1;
    break;
    default:
    cout    << "This is not valid input"
            << " Restart and try again"
         << "Remember the format must be dd/mm" <<end1;
}


system ("pause");
return 0;
}
you wrote end1 (one) instead of endl (line) ;)
Topic archived. No new replies allowed.