본문내용
rs;
int minutes;
friend ostream* operator<<(ostream& os, const Vector& v);
public:
Time(){hours = 0; minutes = 0;}
Time(int h, int m)
{
hours = h;
minutes = m;
}
Time operator+(const Time& t2)
{
Time t(0,0);
t.hours = this->hours + t2.hours;
t.minutes = this->minutes + t2.minutes;
return t;
}
}
ostream* operator<<(ostream& os, const Vector& v)
{
os << v.hours << v.minutes <
return os;
}
int minutes;
friend ostream* operator<<(ostream& os, const Vector& v);
public:
Time(){hours = 0; minutes = 0;}
Time(int h, int m)
{
hours = h;
minutes = m;
}
Time operator+(const Time& t2)
{
Time t(0,0);
t.hours = this->hours + t2.hours;
t.minutes = this->minutes + t2.minutes;
return t;
}
}
ostream* operator<<(ostream& os, const Vector& v)
{
os << v.hours << v.minutes <
}
추천자료
C++ ESPRESSO(에스프레소) PART 03 - CHAPTER 13 EXERCISE(엑서사이즈) 6개
C++ ESPRESSO(에스프레소) PART 03 - CHAPTER 11 EXERCISE(엑서사이즈) 7개
C++ ESPRESSO(에스프레소) PART 03 - CHAPTER 12 PROGRAMMING(프로그래밍) 6개
C++ ESPRESSO(에스프레소) PART 03 - CHAPTER 11 PROGRAMMING(프로그래밍) 5개
C++ ESPRESSO(에스프레소) PART 02 - CHAPTER 09 PROGRAMMING(프로그래밍) 9개
C++ ESPRESSO(에스프레소) PART01 - CHAPTER 01 EXERCISE(엑서사이즈) 10개
C++ ESPRESSO(에스프레소) PART01 - CHAPTER 02 PROGRAMMING(프로그래밍) 12개
C++ ESPRESSO(에스프레소) PART01 - CHAPTER 02 EXERCISE(엑서사이즈) 6개
C++ ESPRESSO(에스프레소) PART01 - CHAPTER 02 PROGRAMMING(프로그래밍) 6개
소개글