LNK2019 Error

Hello, I am very new to programming and i had a question about my code. I am getting an error when trying to compile my code called: Error 1 error LNK2019: unresolved external symbol "int __cdecl lowercaseVowel(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?lowercaseVowel@@YAHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#include <iostream>
#include <string>
#include <fstream>

using namespace std;

int lowercaseVowel(string);
bool isLowercase(char);
bool isAVowel(char);
void fileOpen();
void printResult(int);

ifstream inFile;
int counter;

int main()
{
	string stringInFile;
	int lowercaseVowels = 0;
	int length = 0;
	length = stringInFile.length();

	fileOpen();

	lowercaseVowel(stringInFile);

	printResult(counter);

	system("pause");
	return 0;

}

void fileOpen()
{
	string fileName;						
	while(fileName != "stringWithVowels.txt")
	{
		cout << "To open the file please enter the name of the file." << endl;
		cin >> fileName;
	}

	if(bool fileName = "stringWithVowels.txt")
	{
		inFile.open("stringWithVowels.txt");
	}
}

bool isAVowel(char)
{

	char s;
	inFile >> s;

	switch(s)
	{
	case 'A':
	case 'E':
	case 'I':
	case 'O':
	case 'U':
	case 'a':
	case 'e':
	case 'i':
	case 'o':
	case 'u':
		return true;

	default: return false;
	}

}

bool isLowercase(char ch)
{
	char c;
	inFile >> c;

	if(c > 96 && c < 123)
		return true;
	else
		return false;
}

int lowerCaseVowel(string str)
{
	int length = str.length();
	int counter = 0;
	for (int v = 0; v < length; v++)
	{
		if(isLowercase(str[v]) && isAVowel(str[v]))
		{
			counter++;
		}
	}
	return counter;
}

void printResult(int counter)
{
	cout << "There are " << counter << " lowercase vowels in the string." << endl;
}
Your function name at line 85 does not match your function prototype at line 7 or the call at line 25.
Oh wow something so simple! Thanks a lot AbstractionAnon! This was a stupid mistake! haha anway where did you learn to code? Do you know anywhere I can just keep practicing code to get better and better? I want to learn more than just what the class I am currently taking has for me.

Your in the right place to learn :)

There are many articles and tutorials on this website, and more importantly a lot of friendly helpful people to help you along the way.

Topic archived. No new replies allowed.