Codeblocks and simple error
I am getting error: expected ')' before 'p' in the following code and i have no clue why!!!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#ifndef COORDINATE_H_INCLUDED
#define COORDINATE_H_INCLUDED
namespace Battleships
{
class Coordinate
{
public:
Coordinate(std::string p);
private:
unsigned int row;
unsigned int col;
};
}
#endif // COORDINATE_H_INCLUDED
|
You may need to include the <string> header.
Topic archived. No new replies allowed.