{
  "schemaVersion": "0.11.0",
  "canonical": "https://www.pystone.net/notes/cpp-stringstream/",
  "atlas": "https://www.pystone.net/?node=cpp-stringstream#knowledge-atlas",
  "markdown": "https://www.pystone.net/notes/cpp-stringstream.md",
  "context": "https://www.pystone.net/notes/cpp-stringstream.context.json",
  "knowledgeVersion": "224c990773de.5fa8af6e39fa",
  "build": {
    "siteCommit": "224c990773de166d23a886306577dd90379529ce",
    "notesCommit": "5fa8af6e39fa3891d1b9b4832bfa6c4e0ecaaf0a",
    "builtAt": "1970-01-01T00:00:00.000Z",
    "version": "224c990773de.5fa8af6e39fa"
  },
  "id": "note:cpp-stringstream",
  "slug": "cpp-stringstream",
  "title": "StringStream",
  "type": "note",
  "visibility": "public",
  "idStability": "rename-stable",
  "author": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "publisher": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "aliases": [],
  "summary": "StringStream",
  "contentRole": "unspecified",
  "isMoc": false,
  "mocRecognition": "none",
  "generated": false,
  "attribution": "unspecified",
  "domain": "10-计算机、信息技术与工程",
  "tags": [],
  "mocs": [],
  "contentHash": "5e04a88c131412abbee7f4dae26545c16e7c08d7a699abab07eebce3187ec90e",
  "assets": [
    {
      "reference": "assets/StringStream__Image.png",
      "url": "/media/ec404c60767f18063001.png",
      "mediaType": "image/png",
      "contentHash": "ec404c60767f18063001e30b6519b2832939707806eede6fe067324ef289e254",
      "byteLength": 11078,
      "width": 383,
      "height": 203
    }
  ],
  "headings": [
    {
      "depth": 1,
      "text": "StringStream",
      "anchor": "stringstream",
      "citation": "https://www.pystone.net/notes/cpp-stringstream/#stringstream"
    },
    {
      "depth": 3,
      "text": "istringstream",
      "anchor": "istringstream",
      "citation": "https://www.pystone.net/notes/cpp-stringstream/#istringstream"
    },
    {
      "depth": 3,
      "text": "ostringstream",
      "anchor": "ostringstream",
      "citation": "https://www.pystone.net/notes/cpp-stringstream/#ostringstream"
    },
    {
      "depth": 3,
      "text": "stringstream妙用：（以上两个功能都具备）",
      "anchor": "stringstream妙用以上两个功能都具备",
      "citation": "https://www.pystone.net/notes/cpp-stringstream/#stringstream%E5%A6%99%E7%94%A8%E4%BB%A5%E4%B8%8A%E4%B8%A4%E4%B8%AA%E5%8A%9F%E8%83%BD%E9%83%BD%E5%85%B7%E5%A4%87"
    }
  ],
  "claims": [],
  "outgoing": [],
  "incoming": [
    {
      "id": "note:programming-languages-and-runtimes",
      "title": "编程语言与运行时",
      "url": "https://www.pystone.net/notes/programming-languages-and-runtimes/",
      "atlas": "https://www.pystone.net/?node=programming-languages-and-runtimes#knowledge-atlas",
      "label": "编程语言与运行时",
      "origin": "explicit",
      "humanReviewed": true,
      "context": "C++中的“StringStream”导航项",
      "citation": "https://www.pystone.net/notes/programming-languages-and-runtimes/#c"
    }
  ],
  "contentMarkdown": "# StringStream\n\n﻿# StringStream\n\n> 创建时间：2020/1/22 17:47\n\n![](assets/StringStream__Image.png)\n\n### istringstream\n\n```cpp\nstring str1 = &quot;test&quot;;\nstring str2 = &quot;test&quot;;\n\n```\n\n### ostringstream\n\n```cpp\nstring str1 = &quot;test&quot;;\nstring str2 = &quot;test&quot;;\n\n```\n\n### stringstream妙用：（以上两个功能都具备）\n\n数据类型转换：\n\n```cpp\nstring str1 = &quot;test&quot;;\nstring str2 = &quot;test&quot;;\n\n```\n\nstring转double/int:\n\n```cpp\nstring str1 = &quot;test&quot;;\nstring str2 = &quot;test&quot;;\n\n```\n"
}
