Im new with template and need help.I have a Class name "Data".My question is, how do I call the DoSomething
function?
void DoSomething (Data<int,int> &Direction); //prototype
void main()
{
//This is what I am using and Im not sure its right because
//I got a warning.
Data<int,int> people; //what does this mean?
DoSomething(people);
}
//DoSomething definition
void DoSomething (Data<int,int> &Direction)
{
Direction.print();
}
function?
void DoSomething (Data<int,int> &Direction); //prototype
void main()
{
//This is what I am using and Im not sure its right because
//I got a warning.
Data<int,int> people; //what does this mean?
DoSomething(people);
}
//DoSomething definition
void DoSomething (Data<int,int> &Direction)
{
Direction.print();
}