File: point.cc

package info (click to toggle)
pacman 10-13
  • links: PTS
  • area: main
  • in suites: woody
  • size: 664 kB
  • ctags: 1,108
  • sloc: cpp: 3,333; makefile: 502; sh: 96
file content (7 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
#include"point.h"
Point::Point(int xx=0,int yy=0) { x=xx; y=yy; }; 
int Point::val_x() { return x; };
int Point::val_y() { return y; };
void Point::set_x(int xx) { x=xx; };
void Point::set_y(int yy) { y=yy; };
void Point::set_xy(int xx,int yy) { x=xx; y=yy; };