|
|
|
Перегрузка функции
|
|||
|---|---|---|---|
|
#18+
класс: #ifndef COMPLEX_H #define COMPLEX_H #include<iostream> using namespace std; class Complex { private: float a; float b; friend ostream &operator<<(ostream &,const Complex &); public: Complex(); Complex(float a,float b); Complex operator+(Complex op2); Complex operator-(Complex op2); Complex operator*(Complex op2); Complex operator/(Complex op2); bool operator==(Complex op2); float dGetA(); float dGetB(); }; #endif //********************************************* ostream & operator<<(ostream &output, const Complex &o) { output<<"("<<o.a<<"+"<<o.b<<"i"<<")"<<endl; return output; } и эта функция не работает.Почему ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.04.2005, 18:01:53 |
|
||
|
Перегрузка функции
|
|||
|---|---|---|---|
|
#18+
А что конкретно неработает? ________________________________________________________ Глюк - это высокоорганизованная система не поддающихся определению частиц ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.04.2005, 11:26:20 |
|
||
|
|

start [/forum/search_topic.php?author=Bukan&author_mode=last_topics&do_search=1]: |
0ms |
get settings: |
7ms |
get forum list: |
11ms |
get settings: |
5ms |
get forum list: |
9ms |
get settings: |
7ms |
get forum list: |
9ms |
get settings: |
5ms |
get forum list: |
10ms |
get settings: |
5ms |
get forum list: |
13ms |
get settings: |
7ms |
get forum list: |
14ms |
get settings: |
6ms |
get forum list: |
14ms |
get settings: |
5ms |
get forum list: |
9ms |
get settings: |
8ms |
get forum list: |
13ms |
get settings: |
8ms |
get forum list: |
9ms |
get settings: |
5ms |
get forum list: |
10ms |
get settings: |
6ms |
get forum list: |
16ms |
get settings: |
9ms |
get forum list: |
22ms |
get settings: |
8ms |
get forum list: |
16ms |
get settings: |
8ms |
get forum list: |
16ms |
get settings: |
9ms |
get forum list: |
19ms |
get settings: |
7ms |
get forum list: |
18ms |
get settings: |
9ms |
get forum list: |
14ms |
get settings: |
6ms |
get forum list: |
10ms |
get settings: |
6ms |
get forum list: |
11ms |
get settings: |
6ms |
get forum list: |
14ms |
get settings: |
8ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
51ms |
get topic data: |
5ms |
get first new msg: |
3ms |
get forum data: |
2ms |
get page messages: |
22ms |
get tp. blocked users: |
1ms |
| others: | 15458ms |
| total: | 15982ms |

| 0 / 0 |
