So I have 3 classes, matrix.h,, and

shortestPath includes the .h file, which includes the file.

In shortestPath I've tried to call a Get method I wrote in the file, but I can't figure out how to call the function on the object of that class. This is the line of code I have:

char exp = mat.Get(0, 0);

I'm more concerned now with how to call the function on the object. the object of the matrix class is called mat. The parameters specify which character to return.

The Header (test.h)

//Donot include the cc
class test{
void sayHello();


#include <test.h>
#include <iostream>
using namespace std;
void test::sayHello()

the target class(

#include <test.h>
class target{
void callTest()
  test t;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.