C++言語実装hello worldコード
1009 ワード
コードとコメント
2つのコメント:は、 .もう1つは、 .
以下にいくつかの方法でhello worldを出力します
2つのコメント:
/*
で始まる、*/
で終わるブロックコメントである、//
で始まる改行で終わる1行注釈(line comment).以下にいくつかの方法でhello worldを出力します
/* #include
#: , ,include: , :c++ ,
。 <>
#include
c ,c++ 。
using namespace std; 。 C++ , , std ,
: ,( )
, :std::cout std::cin std::endl;
#include #include :
#include , using namespace std; #include
*/
#include
//using std::cout; // std cout 。::
//using std::endl;
int main(void)
{
//cout<
using namespace std;
int main(void)
{
cout<
int main(void)
{
cout<