Having a hard time with the syntax. I have a complex problem, but basically I cant get the syntax right. I keep getting the following errors,
pa8.cpp:11:23: error: no matching function for call to ‘Coordinate::printCoordinate()’
Coordinate.h:9:10: note: void Coordinate::printCoordinate(int, int, int)
Coordinate.h:9:10: note: candidate expects 3 arguments, 0 provided
I have to break this file into three files, here are the three
1 2 3 4 5 6 7 8 9 10 11 12 13
class Coordinate
{
public:
Coordinate (int x, int y, int z)
{
printCoordinate(x, y, z);
}
void printCoordinate(int x, int y, int z)
{
std::cout<<x<<y<<z;
}
};
1 2 3 4 5 6 7 8 9 10 11 12
#include "Coordinate.h"
Coordinate::Coordinate(int x, int y, int z);
{
printCoordinate(x,y,z)
}
void Coordinate::printCoordinate(int x, int y, int z)
{
}
The only thing i'm trying to do right now is output the first coordinate to get the syntax. also, im not allowed to change the last code. can someone please point me in the right direction? thank you for you time.