Skip to content
SciF-LinPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git

多语言 "Hello, World!" 示例集 —— 一个用于学习 Git 工作流与编程语言基础的学生练习仓库。

项目简介

本仓库用于:

  • 演示 Git 的基本流程(初始化、提交、推送到 GitHub)
  • 汇总多种语言的入门示例,便于对比不同语言的语法风格与运行方式
  • 逐步引入工程化实践:忽略规则、提交规范、目录组织

目录结构

git/
├── .gitignore
├── README.md
├── cpp/
│   ├── HelloWorld.cpp
│   └── README.md          # C++ 发展历史与代码逐行讲解
├── python/
│   └── hello_world.py
├── java/
│   └── HelloWorld.java
├── javascript/
│   └── hello_world.js
└── go/
    └── hello_world.go

示例一览

语言 源文件 运行方式 预期输出
C++ cpp/HelloWorld.cpp g++ -Wall -Wextra cpp/HelloWorld.cpp -o HelloWorld 后运行 Hello, World!
Python python/hello_world.py python python/hello_world.py Hello, World!
Java java/HelloWorld.java javac java/HelloWorld.java 后 java -cp java HelloWorld Hello, World!
JavaScript javascript/hello_world.js node javascript/hello_world.js Hello, World!
Go go/hello_world.go go run go/hello_world.go Hello, World!

C++ 示例另附 详细讲解,包括逐行说明与 C++ 语言发展历史。

提交规范

本仓库采用 Conventional Commits 规范,提交信息格式为:

<类型>: <简短描述>

常用类型:

类型 含义
feat 新增功能或示例
fix 修复问题
docs 仅文档变更
refactor 重构(不改变行为)
chore 构建、配置、依赖等杂项
test 测试相关

示例:

git commit -m "feat: 新增 Rust 示例"
git commit -m "docs: 补充 Python 运行说明"

Git 基本流程

# 查看当前状态
git status

# 将改动加入暂存区
git add <文件>

# 提交到本地仓库
git commit -m "feat: 提交说明"

# 推送到远程仓库
git push

许可证

MIT License

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages