Ok, so basically i'm trying to call a function of a class within another function of that same class. If anybody could help me I would really appreciate it 
Code:
#include<iostream>
using namespace std;
class Hugeint
{
int hint[4][4];
public:
Hugeint();
void display();
void add(int,int);
int convert(int,int);
};
Hugeint::Hugeint()
{
int placeholder[4]={1,2,3,4};
for(int x=0; x<4; x++)
{
for(int y=0; y<4; y++)
{
hint[x][y]=placeholder[x];
}
}
}
void Hugeint::display() //Displays the array in two dimensions.
{
for(int x=0; x<4; x++)
{
for(int y=0; y<4; y++)
{
cout<<hint[x][y];
}
cout<<endl;
}
}
void Hugeint::add(int num1,int num2) //Calls convert function for both numbers to get in int form, then adds.
{
int n1, n2, first, second, sent, total;
n1 = num1+1;
n2 = num2+1;
sent = n1;
first = h1.convert(sent);
sent = n2;
second = h1.convert(sent);
total = first+second;
cout<<total<<endl;
}
int Hugeint::convert(int sent)//Converts the numbers chosen in from hint into ints respectively.
{
int int1=0;
for(int pnt=0; pnt<4; pnt++)
{
for(int zeros=3; z<=0; z--)//How many zeros to add based on the placement of the number.
{ //4321 = 4000 + 300 + 20 + 1
if(zeros==3)
int1=int1+(hint[sent][pnt]*1000);
if(zeros==2)
int1=int1+(hint[sent][pnt]*100);
if(zeros==1)
int1=int1+(hint[sent][pnt]*10);
if(zeros==0)
int1=int1+hint[sent][pnt];
}
}
return int1;
}
int main()
{
int num1, num2;
Hugeint h1;
h1.display();
system("PAUSE");
cout<<"What would you like add?"<<endl;
cin>>num1;
cout<<' ';
cin>>num2;
h1.add(num1,num2);
return 0;
}
In the function "void Hugeint::add()" I'm getting an error that states "h1 - undeclared ifentifier".