Compiler Error

Good day all. First time user, new to C++. I would like know please what causes the C3861. I have pasted my program below. The error says something to the effect of "error C3861: 'Myfunction': identifier not found". I have the braces in properly (I think). Thank you for your time.

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
32
33
34
35
36
#include "stdafx.h"
#include<iostream> 
using namespace std;

void MyFunction2 ()
{

	cout <<"MyFunction2\n";


}

void MyFunction ()
{
	cout << "MyFunction\n";
	MyFunction2 () ;


	cout << "back in MyFunction\n";

}

int main()
{
	cout << "main\n";

	Myfunction ();

	cout << "back in main/n";


	char f;
	cin >> f;
	return 0;
}
The compiler doesn't know what you mean by Myfunction on line 27. C++ is case-sensitive so Myfunction is not the same as MyFunction.
Inconsistent use of upper and lower case characters. Compare lines 13 and 27, the names are not the same.
Topic archived. No new replies allowed.