èå¥åã®è¡çª Cè¨èªãçç¥ãã¦ããåã§ããã°ããã¼ã«ã«å¤æ°åã¨ã°ãã¼ãã«å¤æ°åãåãã ã£ãã¨ã é¢æ°å ã§å¤æ°ã«ã¢ã¯ã»ã¹ããã°ã©ããªããããã§ã«ãåç¥ã ã¨æãã¾ã åæ§ã®ç¾è±¡ãã¯ã©ã¹ã®ã¡ã³ãé¢æ°å ã¨ã¡ã³ãå¤æ°ã§çºçãã¾ã ã¡ã³ãé¢æ°å ã®ãã¼ã«ã«å¤æ°åã¨ãåã¯ã©ã¹ã®ã¡ã³ãå¤æ°åãåãã ã£ãæã§ã 次ã®ããã°ã©ã ãå®è¡ããæã®ãã¨ãèãã¦ãã ãã #include <iostream> using namespace std; class Kitty { public: char *str; void print(char *); }; void Kitty::print(char *str) { cout << str; } int main() { Kitty obj; obj.str = "Kitty on your lap"; obj.print("Di_Gi_Gharat"); ret
{{#tags}}- {{label}}
{{/tags}}