Skip to content
Permalink
7c65d5344b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
23 lines (17 sloc) 293 Bytes
#ifndef POSITION_H
#define POSITION_H
#include <ostream>
class Position
{
public:
int x, y;
Position( int _x=0, int _y=0 )
: x(_x), y(_y)
{}
void up();
void down();
void left();
void right();
friend std::ostream& operator<<( std::ostream& os, const Position& p );
};
#endif