老师您好,纠正你一个小错误哦,不是编程的,而是发音的,iostream中stream这个单词,t发音不是t,而是d,所以应该读作sdream。虽然不是啥大问题,还是希望大家顶一下让老师看到。
2016-04-12
老师您好,纠正你一个小错误哦,不是编程的,而是发音的,iostream中stream这个单词,t发音不是t,而是d,所以应该读作sdream。虽然不是啥大问题,还是希望大家顶一下让老师看到。
2016-04-12
{public:Coordinate(int x, int y){ m_iX = x; m_iY = y;} void printInfo() const{cout<<"("<<m_iX<<","<<m_iY<<")"<<endl;}
public:int m_iX;int m_iY;}; int main(void){const Coordinate coor(3, 5); const Coordinate *p = new Coordinate(3, 5); const Coordinate &c = coor;
public:int m_iX;int m_iY;}; int main(void){const Coordinate coor(3, 5); const Coordinate *p = new Coordinate(3, 5); const Coordinate &c = coor;