ããã¯ä½ï¼ Rustã®å®å ¨æ§ã«ã¤ãã¦ãã誤解ããã¦ãããããªã®ã§ãããè¯ãç解ã§ããããã«C++ã¨ã®æ¯è¼ãç§ãªãã«è¡ã£ã¦ã¿ã¾ããã C++ã®å ´å ããã°ã©ãã³ã°åå¿è ã§ããç§ã¯ãC++ã§ææ¸ã管çãã Document ã¯ã©ã¹ãæ¸ããã ãã®ã¯ã©ã¹ã¯ãã³ã³ã¹ãã©ã¯ã¿ã¼ã§3ã¤ã®æ®µè½ãçæãã paragraphs ã¨ããã¡ã³ãã¼ã«æ ¼ç´ããã #include <string> #include <vector> #include <iostream> // ææ¸ã表ãã¯ã©ã¹ class Document { public: Document() { // 3ã¤ã®æ®µè½ã追å paragraphs.push_back("paragraph 1"); paragraphs.push_back("paragraph 2"); paragraphs.push_back("paragraph 3");
{{#tags}}- {{label}}
{{/tags}}