国际惯例难道不是先来个hello world吗?
-
#include<stdio.h>//引用标准输入输出头文件
int main()//定义主函数
{
printf("Hello,world!\n");//输出语句并换行
return 0;//返回0值代表成功
}//结束
/*********
by Bruce Kang
*********/ -
-
不标准的C语言代码……
^ ^
^ ^
以上内容经过UTF-8编码 -
System.Out.Println("hello,world");
-
puts "Hello world"
-
echo SGVsbG8gd29ybGQK | base64 -d
-
#Python 3
print("Hello World") -
#include<iostream>
int main()
{
std::cout<<"Hello,world"<<std::endl;
return 0;
}//标准的C++C11