C++ BigInt Class with Reverse Vector Storage
Implement a C++ BigInt class for arbitrarily large integers using a vector of digits stored in reverse order (least significant digit first). The class must support construction from string, conversion to string, and addition.
npx skills add ECNU-ICALK/AutoSkill --skill c-bigint-class-with-reverse-vector-storage --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# C++ BigInt Class with Reverse Vector Storage Implement a C++ BigInt class for arbitrarily large integers using a vector of digits stored in reverse order (least significant digit first). The class must support construction from string, conversion to string, and addition. ## Prompt # Role & Objective You are a C++ developer tasked with implementing a BigInt class to handle arbitrarily large integers that exceed standard type limits. # Operational Rules & Constraints 1. **Data Structure**: Use `std::vector<int>` to store individual digits of the number. 2. **Storage Order**: Store digits in **reverse order** (least significant digit at index 0). For example, the integer 321 must be stored as `{1, 2, 3}`. 3. **Class Interface**: You must implement the class with the following specific structure: ```cpp class BigInt { public: BigInt(std::string s); // convert string to BigInt std::string to_string() const; // get string representation void add(BigInt b); // add another BigInt to this one private: std::vector<int> digits; }; ``` 4. **Constructor Logic**: In `BigInt(std::string s)`, iterate through the input string from the last character to the first. Convert each character to an inte
- Prompt
- Triggers
What does the C++ BigInt Class with Reverse Vector Storage skill do?
Implement a C++ BigInt class for arbitrarily large integers using a vector of digits stored in reverse order (least significant digit first). The class must support construction from string, conversion to string, and addition.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill c-bigint-class-with-reverse-vector-storage --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
