C++ ã触ã£ã¦ã¿ãããªãéçºç°å¢ãä½ãã¾ããã
ãã®éã«å°ãèºããããè¨äºãæ®ãã¦ããã¾ãã
ä½å¦ã§èºãããâ¦
ã³ã¼ãåé ã§ã #include <iostream>
ããè¨è¿°ãã¾ãã
#include <iostream> int main() { std::cout << "Hello World" << std::endl; }
ãã®ç¶æ ã ã¨æ¬¡ã®ã¨ã©ã¼ãåºã¦æ¥ãã¨ãããã®ã§ãã
ã½ã¼ã¹ ãã¡ã¤ã«ãéãã¾ãã "iostream"C/C++(1696)
C++ ã®ãã¥ã¼ããªã¢ã«ã調ã¹ãã¨å¤§ä½åãã¨ããã§èºãã¦ãã人ãå¤ãããã§ãã
å¤åã«æ¼ããç§ãããã§èºãã¾ããâ¦
åå
C++ç¨ã®ã³ã³ãã¤ã©ãã¤ã³ã¹ãã¼ã«ããã¦ããªãå¯è½æ§ãããã¾ãã
ã¤ã³ã¹ãã¼ã«æé ã¯ä¸è¨ãåèã«ãªãã¾ãã
Visual Studio Codeï¼ä»¥ä¸ãVSCodeï¼ ç¨ã®ããã¥ã¡ã³ãã§ãããã³ã³ãã¤ã©ã®ã¤ã³ã¹ãã¼ã«æé ãæ¸ããã¦ãã¾ãã®ã§ã¨ã¦ãåèã«ãªãã¾ãã
以ä¸ã§ãã
ã³ã³ãã¤ã©ã«ã¤ãã¦ãèªã¿è¾¼ãã§ã¿ã¾ããããç¥è¦ãç¡ã解説ããã¾ã§ã«ã¯è³ãã¾ããã§ããâ¦
åå¦è
ãèªã¿é²ããã«ããã£ã¦ã次ã®è¨èãåããã°ç解ãæ·±ã¾ããã¨æãã¾ãã
- GNU(GNU is Not Unix):
ãªãã¬ã¼ã·ã§ã³ã·ã¹ãã ã®ä¸ã¤ã§ã権å©ãèªç±ãªã½ããã¦ã§ã¢ãå ±æããäºã«ç¹åããã·ã¹ãã
OSã«ã¯ãã£ã¹ããªãã¥ã¼ã·ã§ã³ãè¤æ°ãããUnix/Linux ãã¼ã¹ã§æ±ãããGNU/Linuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ããä¸è¬ç - GCC(GNU Compiler Collection):
GNUã®ã³ã³ãã¤ã«ç¾¤ãC++ ã®ã³ã³ãã¤ã©ãå«ã¾ãã - Mingw(Minimalist GNU for Windows):
GNUããã¸ã§ã¯ãã§å ¬éããã¦ããããã°ã©ãã³ã°ãã¼ã«ç¾¤ï¼GNUãã¼ã«ãã§ã¼ã³ï¼ã®Windowsãã¼ã¸ã§ã³
ãHello Worldãã«é²ãã足ãããã«ãªãã°å¹¸ãã§ãã