Hello World!

第一篇博客!“Hello World! ”中文含义“你好,世界!”。因为《The C Programming Language》中使用它做为第一个演示程序,非常著名,所以之后的同学们在学习编程或进行设备调试时延续了这一传统。因此,本人的第一篇博客也延续这一传统。以下是一些熟悉的语言示例:

C 语言:

1 #include "stdio.h"
2 int main()
3 {
4     printf("Hello, World!
");
5     return 0;
6 }
C++ 语言:
1 #include "iostream"
2 using namespace std;
3 int main()
4 {
5     cout<<"Hello, World!"<<endl;
6     return 0;
7 }
C# 语言:
 1 namespace HelloWorld
 2 {
 3     class Program
 4     {
 5         static void Main(string[] args)
 6         {
 7             System.Console.Write("Hello, World!");
 8         }
 9     }
10 }

Python 语言:

 1 print("Hello, World!") 

R 语言:

 1 print('Hello World!') 

原文地址:https://www.cnblogs.com/truth-seeking/p/12620425.html