c++ - 不允许不完整的类型 : stringstream

标签 c++ types stringstream

为什么这行会报错Error: Complete type is not allowed

stringstream ss;

最佳答案

#include <sstream>并使用完全限定名称,即 std::stringstream ss;

关于c++ - 不允许不完整的类型 : stringstream,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5781597/

相关文章:

c++ - 使用 2D/3D 点模板

c++ - 三重检查锁定?

带有 TextIOWrapper 的 python zipfile 模块

c++ - 我不明白这个 C/C++ 笑话

c++ - 删除 .. 在 boost filesystem::complete

types - 将字符串转换为 UTCTime 类型

json - 如何验证字符串是 PostgreSQL 中的有效 JSON?

c++ - 如何使用 C++ 字符串流附加 int?

c++ - 在循环中使用 stringstream 从几个字符串中提取数字

c++ - my_string(char* s) 是什么意思?