ASAP(All-Star Sunday Afternoon Party)是菲律賓於中午時段撥出的一個音樂綜藝節目,會邀請許多的歌手/藝人參加。此段影片是Sarah與Charice兩人於2009年同台演出的片段,曲目是I have nothing與I will always love you(原唱:Whitney Houston)。
/* main.cpp */
#include "Point.h"
int main() {
Point p1(5, 5);
Point p2 = p1;
cout << "p1 is : " << p1 << endl;
cout << "p2 is : " << p2 << endl;
p1.setX(500);
p1.setY(500);
cout << "p1 is : " << p1 << endl;
cout << "p2 is : " << p2 << endl;
return 0;
}
Java:
/* main.java */
public class Main {
public static void main(String args[]) {
Point p1 = new Point(5,5);
Point p2 = p1;
System.out.println("p1 is : " + p1);
System.out.println("p2 is : " + p2);
p1.setX(500);
p1.setY(500);
System.out.println("p1 is : " + p1);
System.out.println("p2 is : " + p2);
}
}