Tuesday, July 05, 2005

Day 5 and 6



Well... Last friday i started with the first OOP lesson.

Started out from C, a structure describing a Point


typedef struct Point {
  double x;
  double y;
};


and its use is as follows:


Point p;
p.x = 3; p.y = 4;
printf("(%lf,%lf)",p.x,p.y);


Then i convert both to Java


public class Point {
d

1 Comments:

At 10:50 AM, Blogger switch said...

Truncated! Blogger seems to have some issues with long posts.

 

Post a Comment

<< Home