Your help is appreciated.
// HW5_Bhasin.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include<iostream>
using namespace std;
void Erase(int [], int* ,int* );
int main()
{
char choice;
const int max = 5;
int a[max];
int itemCount=0, SearchElement=0;
cout<<"Please select from the following menu."<<endl;
cout<<" E(Erase Array Content)\tC(Count Words)\tR(Reverse Words)\tQ(Quit)"<<endl;
cin>> choice;
cin.ignore();
switch(choice)
case 'E':
case 'e':
[color=#FF0000] Erase(a, &itemCount, &SearchElement); // function call giving the error[/color]
return 0;
}
error list:
Error 1 error LNK2019: unresolved external symbol "void __cdecl Erase(int * const,int *,int *)"
Error 2 fatal error LNK1120: 1 unresolved externals
Thanks.

New Topic/Question
Reply




MultiQuote



|