Hi everyone! My name is AlanWu. I'm an ordinary junior high school student in China, and I love coding in C++. I know my programming skills aren't perfect yet, but I believe sharing and getting feedback is the best way to grow. Here are three open-source C++ projects I built — feedback and contributions are always welcome!
- Ping — A Lightweight ICMP Ping Tool
GitHub: https://github.com/Cn-Alanwu/Ping
Tech Stack: C++, Raw Sockets, ICMP Protocol
A simple local network ping program implemented from scratch using raw sockets and the ICMP protocol. Instead of just calling the system's built-in ping command, this project shows exactly how ping works under the hood — packet construction, checksum calculation, round-trip time measurement, and TTL handling.
Key Features:
Sends ICMP Echo Request packets and receives Echo Reply
Calculates RTT (round-trip time) in milliseconds
Supports configurable packet size and timeout
Clean, well-commented C++ code suitable for learning
Why It Matters: If you're learning network programming or socket APIs, reading a real implementation is far better than just reading theory. This project is small enough to understand in one sitting.
- luogu-answer — Algorithm Problem Solutions for Luogu
GitHub: https://github.com/Cn-Alanwu/luogu-answer
Tech Stack: C++, Algorithms & Data Structures
A growing collection of reference answers (in C++) for algorithm problems on Luogu, one of China's largest online judge platforms for competitive programming. Each solution includes the problem ID and is ready to submit — just copy, paste, and it passes the judge.
Topics Covered:
Dynamic Programming
Graph Theory (DFS, BFS, shortest paths, MST)
Data Structures (segment tree, union-find, Fenwick tree)
Number Theory & Combinatorics
String Algorithms
Why It Matters: When you're stuck on a Luogu problem at 2 AM, having a clean reference solution to compare against is a lifesaver. This repo is my personal problem-solving journal — use it as a study companion.
- algorithmCombination — Header-Only C++ Algorithm Library
GitHub:https://github.com/Cn-Alanwu/algorithmCombination
Tech Stack: C++ (Header-Only), Templates
A collection of commonly used algorithm and data structure templates, packaged as standalone header files with bilingual (Chinese + English) documentation. Header-only means zero configuration — just #include and start coding.
What's Inside:
Sorting algorithms (quick sort, merge sort, heap sort)
Graph algorithms (Dijkstra, Kruskal, Floyd-Warshall)
Math utilities (fast power, GCD/LCM, prime sieve)
Data structures (binary indexed tree, segment tree, disjoint set)
Why It Matters: In competitive programming, every second counts. Having battle-tested algorithm templates ready to go can be the difference between AC and TLE. The bilingual comments also make it friendly for both Chinese and English-speaking learners.
Wrapping Up
I built these projects because I genuinely enjoy writing code and solving problems. They're not perfect — I'm still learning, and I know there are bugs and room for improvement. If you find something wrong, please open an issue or even better, send a pull request. I'd love to learn from you.
If any of these projects help you even a little, a ⭐ on GitHub would mean a lot to me.
My GitHub: https://github.com/Cn-Alanwu
Tags: #cpp #github #opensource #programming #algorithms #networking #beginners #competitiveprogramming
中文版
大家好,我是AlanWu,一名普通的中国初中生,平时喜欢用 C++ 写代码。虽然我写的不算好,但我相信多分享、多接受反馈才能进步。以下是我写的三个 C++ 开源项目,欢迎大家提意见和 Pull Request!
- Ping — 轻量级 ICMP Ping 工具
仓库: https://github.com/Cn-Alanwu/Ping
技术栈: C++, Raw Socket, ICMP 协议
从零实现的本地网络 Ping 程序,使用原始套接字直接构造 ICMP 报文。不是调用系统自带的 ping 命令,而是从底层展示了 Ping 的工作原理:报文构造、校验和计算、往返时间测量、TTL 处理等。
核心特性:
发送 ICMP 回显请求、接收回显应答
计算并显示毫秒级 RTT 延迟
支持自定义包大小和超时时间
代码简洁,注释清晰,适合网络编程入门学习
- luogu-answer — 洛谷算法题参考答案
仓库: https://github.com/Cn-Alanwu/luogu-answer
技术栈: C++,算法与数据结构
收集了洛谷在线判题平台上部分题目的 C++ 参考题解,每道题附带题目编号,代码可直接提交通过评测。
覆盖主题:
动态规划、图论(DFS/BFS/最短路/最小生成树)
数据结构(线段树、并查集、树状数组)
数论与组合数学、字符串算法
- algorithmCombination — C++ 算法头文件库
仓库: https://github.com/Cn-Alanwu/algorithmCombination
技术栈: C++(Header-Only),模板
将常用算法和数据结构模板封装为独立头文件,中英双语注释,Header-Only 即插即用。目前包含排序、图论、数学工具、数据结构等常用模板。
如果这些项目对你有帮助,欢迎点个 Star ⭐,也欢迎提 Issue 和 PR 一起改进!
Top comments (1)