MCPcopy Create free account
hub / github.com/SnowballXueQiu/sb.h

github.com/SnowballXueQiu/sb.h @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1 symbols 1 edges 3 files 0 documented · 0% updated 6mo ago★ 3472 open issues

Browse by type

Functions 1 Types & classes 0
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

sb.h —— 让你的 C++ 代码秒变“优秀”!

你是否曾经在 C++ 编程中被奇怪的拼写错误困扰?你是否曾为了一个迷之 “mian” 而对着电脑苦苦凝视?或者因为一句 retrun 而想要扔掉键盘?别担心!sb.h 正是为你而生!

什么是 sb.h?

sb.h 是一个 革命性 的 C++ 头文件,致力于帮助中文开发者纠正他们最常犯的拼写。我们将开发者的“经典错误”纳入宏定义,让你的代码即使写错了也能“正确”运行。

用法

  1. 在你的 C++ 项目中包含 sb.h

    ```cpp

    include "sb.h"

    ```

  2. 然后尽情地犯错吧!放心,sb.h 会替你纠正这些错误。

    ```cpp

    include

    int mian() { // mian? 别怀疑,就是 mian! stadout << "Hello, world!" << std::endl; // stadout? 我们知道你想要 std::cout。

    bool tureValue = ture; // ture? 不用再纠结拼写问题了。
    
    retrun 0; // retrun? 终于可以自信地写错这个词了!
    

    } ```

  3. 编译和运行。惊喜地发现你的代码竟然奇迹般地正常工作!

    Hello, world!

包含的错误类型

  • 拼写错误mianretrun 等等。

注意事项

  • 这是一个幽默性质的项目,用于娱乐和学习。不要在生产环境中使用,否则可能导致项目经理“精神错乱”。

欢迎贡献你的“错误”!

我们相信,这个世界上的错误远远不止我们发现的这些。如果你在 C++ 编程中也有一些独特的“神奇操作”,欢迎将它们加入到 sb.h 中!让我们一起来丰富这个“错误合集”,帮助更多的开发者在 C++ 的世界里轻松犯错、快乐学习。毕竟,犯错也是编程中的一部分,不是吗?


快来试试 sb.h 吧,让我们一同在 C++ 的世界中“正确”地犯错!

声明 * 今天被一个朋友告知,我写的这个整活小项目竟然在小红书小有波澜,我也看见了有人骂我,但我认为这就是一个整活的项目,没有必要较真,并且我在想你readme已经说明请勿用于生产环境。试问一下,那些说我闲的蛋疼的,实际开发水平真的比我强吗

Core symbols most depended-on inside this repo

Shape

Function 1

Languages

C++100%

Modules by API surface

main.cpp1 symbols

For agents

$ claude mcp add sb.h \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page