C++ ã®ã¯ã©ã¹ã¨ Python ã®ã¯ã©ã¹ C++ 㨠Python ã®å¤§ããªéãã¯ãåè ãã³ã³ãã¤ã©åãã å¾è ãã¤ã³ã¿ããªã¿åãã®è¨èªã§ããã¨ãããã¨ããããã¾ãã ãã©ã C++ ã§ã¯ãã¯ã©ã¹ãã¯ããã¾ã§ãããããã¡ã¤ã«ãªã©ã§ã®ãå®ç¾©ãã§ãã£ã¦ã ã³ã³ãã¤ã©ã«ãããã¨ãã«ã¯ãå®éã«ãã®å®ç¾©ãããã³ã¼ããå®è¡ããã ãã¨ã¯ãªããããããããã¾ãã ä¸æ¹ãPython ã¯ã¤ã³ã¿ããªã¿ãªã®ã§ããã¯ã©ã¹ãæã¯ãããªãå®è¡ããã¦ããã ããã¡ãã£ã¨å ·ä½çã«è¨ãã¨ã: 1: class foo(object): 2: def bar(self): 3: print 'Hello, world!!' 4: 5: x = foo() 6: x.bar() ä¸è¨ã®ãã㪠Python ã®ããã°ã©ã ããã£ãã¨ããC++ ã®æè¦ã ã¨ã 5è¡ç®ããå®è¡ããã¦ãããããªæ°ããããã§ãfoo() 㧠foo ã¯ã©
{{#tags}}- {{label}}
{{/tags}}