|
|
|
STL (опять что-то намудрил)
|
|||
|---|---|---|---|
|
#18+
Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. что тут неправильного? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.12.2007, 18:03:14 |
|
||
|
STL (опять что-то намудрил)
|
|||
|---|---|---|---|
|
#18+
On Sun, 23 Dec 2007 18:03:14 +0300, Tubrik <nospam@sql.ru> wrote: > #include <iostream> > #include <list> > > > int main( ) > { > std::list<std::string> str_list; > std::string str = "ddd"; > > str_list.push_back(str); > str_list.remove(str); > > return 0; > } > что тут неправильного? Наверное, то, что строка должна быть не ddd, а bbb :) А что, она неверно работает? Что выдает и что должна выдавать? Если не компилится, то с какими ошибками? Posted via ActualForum NNTP Server 1.4 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.12.2007, 18:38:07 |
|
||
|
STL (опять что-то намудрил)
|
|||
|---|---|---|---|
|
#18+
ошибок тонна, самая первая c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\list(682): error C2676: binary '==' : 'std::allocator<_Ty>::value_type' does not define this operator or a conversion to a type acceptable to the predefined operator with [ _Ty=std::string ] ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.12.2007, 18:46:01 |
|
||
|
|

start [/forum/topic.php?fid=57&msg=35028559&tid=2027575]: |
0ms |
get settings: |
7ms |
get forum list: |
19ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
209ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
40ms |
get tp. blocked users: |
1ms |
| others: | 209ms |
| total: | 502ms |

| 0 / 0 |
