Hey , I m beginner

Hey i was reading the documentation here and i read i can output string with new lines by 2 way
1st : /n
2nd end1;
1st one did it but 2nd don't want to work with me here is the code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// test.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
using namespace std;

int main()
{
	cout<<"Hellworld"<<end1;
	cout<<"None"<<end1;
	cin.get();
		cin.get();
	return 0;
}

and i wrote that in the stadfx header
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once

#include "targetver.h"
#include <iostream>
#include <stdio.h>
#include <tchar.h>

#include <string>


// TODO: reference additional headers your program requires here 

There error is end1 isn't declared
PS: sry for my english
it's endl, not end1
- last character is a lowercase L -
Thanks , reading fault :D
1
2
3
4
5
6
7
8
9
10
1
1>Compiling...
1>stdafx.cpp 
1>Compiling...
1>learn2.cpp
1>Linking...
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>C:\Users\xxx\Documents\Visual Studio 2008\Projects\learn2\Debug\learn2.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://c:\Users\xxx\Documents\Visual Studio 2008\Projects\learn2\learn2\Debug\BuildLog.htm"
1>learn2 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

i got this error when i moved my learn project to my Lab
Last edited on
Visual Studio?
You should start from an Empty Project, any other template would mess up things
Topic archived. No new replies allowed.