Newbie Problem

Don't make fun!

http://gyazo.com/fefac0b392b36744d7d159d8e36209a9

1
2
3
4
5
6
7
8
9
#include <iostream>

using namespace std;

int main()
{
	cout << "Hello World!" << endl;
	return 0;
}



1>------ Build started: Project: firstprogram, Configuration: Debug Win32 ------
1>  main.cpp
1>c:\users\tyler\desktop\firstprogram\firstprogram\firstprogram\main.cpp(5): error C2470: 'main' : looks like a function definition, but there is no parameter list; skipping apparent body
1>c:\users\tyler\desktop\firstprogram\firstprogram\firstprogram\main.cpp(6): error C2447: '{' : missing function header (old-style formal list?)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Please help!
Last edited on
int main()
NOT
int main{}
Fixed that part, still a problem.

1>------ Build started: Project: firstprogram, Configuration: Debug Win32 ------
1>  main.cpp
1>c:\users\tyler\desktop\firstprogram\firstprogram\firstprogram\main.cpp(7): error C2065: 'end1' : undeclared identifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Last edited on
it's endl (with a lowercase L)
not end1 (with the number 1)
Resolved, thanks you two!
Topic archived. No new replies allowed.