zoukankan      html  css  js  c++  java
  • 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!') 

  • 相关阅读:
    [转]initrd.img, vmlinux
    [转]关于arm 上kernel, qemu起VM等
    [转]overlayFS
    [转]virtiofs
    [转] dynamic DMA mapping
    [转] cpu亲和性
    [转] /dev/shm
    huginn,n8n,ifttt
    ipfs---protocol, filesystem,web p2p,cdn
    gpg,pgp--
  • 原文地址:https://www.cnblogs.com/truth-seeking/p/12620425.html
Copyright © 2011-2022 走看看