Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 27th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Is it guaranteed to safe passing [c  ] POD types to [c] or vise versa? [closed]
  2. Class Point {
  3.         long x,y;
  4.         Point(long x, long y) {
  5.                 this->x=x;
  6.                 this->y=y;
  7.         }
  8.  
  9.         float Distance(Point &point) {
  10.                 return ....;
  11.         }
  12. };
  13.        
  14. struct point {
  15.         long x,y;
  16. };
  17.        
  18. struct point
  19. {
  20.     long x, y;
  21. };
  22.  
  23. class Point : public struct point
  24. {
  25.   public:
  26.     Point(long x, long y)
  27.         {    this->x=x; this->y=y; }
  28.  
  29.     float Distance(Point &point)
  30.         {                return ....;        }
  31. }