|
Причина ошибки на cout?
|
|||
---|---|---|---|
#18+
Сделал тестовое приложение c++ ( VS2017) В примере пишет ошибку на cout Код: plaintext 1.
// iterate using range-based loop { for (const auto& sm_pair : myMap) { std::cout << sm_pair.first << '\n';// <--------------------------здесь for (const auto& sc_pair : sm_pair.second) { std::cout << " " << sc_pair.first << '{' << sc_pair.second.a << ',' << sc_pair.second.b << ',' << sc_pair.second.d << "}\n"; } } } ... |
|||
:
Нравится:
Не нравится:
|
|||
20.02.2019, 15:52 |
|
Причина ошибки на cout?
|
|||
---|---|---|---|
#18+
что за тип у sm_pair.first ? вместо '\n' можно использовать << endl; ... |
|||
:
Нравится:
Не нравится:
|
|||
20.02.2019, 16:00 |
|
Причина ошибки на cout?
|
|||
---|---|---|---|
#18+
Cerebrumчто за тип у sm_pair.first ? вместо '\n' можно использовать << endl; sc_pair.first - std::string ... |
|||
:
Нравится:
Не нравится:
|
|||
20.02.2019, 16:27 |
|
Причина ошибки на cout?
|
|||
---|---|---|---|
#18+
я спрашивал про sM_pair.first? ... |
|||
:
Нравится:
Не нравится:
|
|||
20.02.2019, 16:33 |
|
|
start [/forum/topic.php?fid=57&msg=39776813&tid=2017661]: |
0ms |
get settings: |
10ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
42ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
47ms |
get tp. blocked users: |
1ms |
others: | 13ms |
total: | 150ms |
0 / 0 |