,   CyberForum.ru

- C++


C++ ++ http://www.cyberforum.ru/cpp-beginners/thread220169.html
++ : 1) 2) , 3) 4) 5) * : 1) 2) ...
C++ , ?? .. 100110, . - ??? in.get, .... in.get, , ... http://www.cyberforum.ru/cpp-beginners/thread220168.html
switch C++
switch . ) ( )
C++ a n (while for)
, a n (while for)?
C++ http://www.cyberforum.ru/cpp-beginners/thread220156.html
++ : 1) 2) , 3) 4) 5) * : 1) 2) ...
C++ . . !!!!!!!!!!!!!!!!!!!!!!!!!!

get_lost
0 / 0 / 0
: 05.05.2010
: 15
17.01.2011, 18:46  []    
easybudda,

.

:

C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 bool correct() const {
                return ( mi_month > 0 && mi_month < 13 && mi_day > 0 && mi_day <= DAYS_IN_MONTH[mi_month] );
        }
        bool operator < (const Date & another) const {
                return ( mi_month < another.month() || ( mi_month == another.month() && mi_day < another.day() ) );
        }
        bool operator > (const Date & another) const {
                return ( mi_month > another.month() || ( mi_month == another.month() && mi_day > another.day() ) );
        }
        bool operator == (const Date & another) const {
                return ( mi_month == another.month() && mi_day == another.day() );
        }
        bool operator <= (const Date & another) const {
                return ( *this < another || *this == another );
        }
        bool operator >= (const Date & another) const {
                return ( *this > another || *this == another );
        }
        // äî êó÷è :)
        bool operator != (const Date & another) const {
                return ( mi_day != another.day() || mi_month != another.month() );
        }
};
 
- , ,
-
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
@Mail.ru