|
Причина ошибки на 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&gotonew=1&tid=2017661]: |
0ms |
get settings: |
9ms |
get forum list: |
12ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
34ms |
get topic data: |
9ms |
get first new msg: |
6ms |
get forum data: |
2ms |
get page messages: |
54ms |
get tp. blocked users: |
1ms |
others: | 260ms |
total: | 391ms |
0 / 0 |