下面是代码片段,使用的是vs2013,为什么int不能,而声明为char类型就可以,求大神解答!(https://img-ask.csdn.net/upload/201504/02/1427945500_33798.png)
ostreambuf_iterator is working only with character.如果你需要用int,那么可以用 ostream_iterator