index

# 编程语言

# hello world

# C - 1972

#include <stdio.h>

int main(void) {
    printf("Hello, World!\n");
    return 0;
}

# C++ - 1980

#include <iostream>
using namespace std;

int main() {
    cout << "Hello, World!" << endl;
    return 0;
}

# Python - 1991

print("Hello, World!")

# Java - 1995

class HelloWorld {
  public static void main(String[] args) {
    System.out.println("Hello, World!");
  }
}

# Go - 2009

package main

import "fmt"

func main() {
  fmt.Println("Hello, World!")
}

# Rust - 2010

fn main() {
    println("Hello, World!");
}
上次更新: 2022-01-19 01:35:48
×