Can't even get "Hello World" to work!

May 25, 2016 at 12:54pm

Please forgive my complete ignorance here, but I am probably the only beginning programmer that can not get the Hello World program to work. The book I am using to teach myself is telling me to type in the code below, but I keep getting this message after I run the debug tests in Visual Studio 2015 Community:

"Value cannot be null.
Parameter name: solutionDirectory

1
2
3
4
5
6
7
8
9
10
11
  Put the code you need help with here.

#include <iostream>

int main()
{
	std::cout << "Hello World" << std::end1;
	return 0;
}



Please help me figure out what I am doing wrong here.

Thank you for your time.

Frog...
May 25, 2016 at 12:59pm
Perhaps this may help:
http://stackoverflow.com/a/19503994
May 25, 2016 at 1:13pm
line 7 the endl should end with a letter "l" not a number "1"
May 25, 2016 at 1:22pm
@DirtyDan - you are right, but that would give a different error message, such as:
error C2039: 'end1': is not a member of 'std'
error C2065: 'end1': undeclared identifier


That would in this case be a successful outcome as it means the compiler was actually working.
May 25, 2016 at 1:33pm
thx. got it now. sorry for asking question that someone else asked before.
Topic archived. No new replies allowed.