王道刷题

Consolidate C++ programming knowledge for I/O, strings, algorithms, and conversions.

2|1|Updated Jan 29, 2020
One-click install
npx skills add https://github.com/FulChou/IOS_er --skill -fulchou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 王道刷题
Source: https://github.com/FulChou/IOS_er/tree/main/%E7%8E%8B%E9%81%93%E5%88%B7%E9%A2%98
Command: npx skills add https://github.com/FulChou/IOS_er --skill -fulchou

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill consolidates essential C++ programming knowledge, including input/output operations, string manipulation, data structures, algorithms, and numerical conversions, serving as a quick reference for developers.

Core Features & Use Cases

  • C++ I/O and String Handling: Covers cin, cout, scanf, printf, and various std::string methods like substr, insert, erase, append, replace, assign, and search functions.
  • Algorithms and Data Structures: Provides insights into sorting, KMP string matching, GCD, prime number checks, and factor calculations.
  • Numerical Conversions and Utilities: Details integer-to-string and string-to-integer conversions, absolute value calculations, and bitwise operations for parity checks.
  • Use Case: A developer needs to quickly recall how to efficiently sort a vector of custom structs or how to implement the KMP algorithm for pattern matching.

Quick Start

Refer to the C++ string manipulation section for details on using the substr method.

Frequently Asked Questions about 王道刷题

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement the KMP algorithm for string matching in C++?

The KMP algorithm for string matching in C++ is covered as a core feature, providing insights for efficient pattern matching. You can use this reference to quickly recall the implementation logic for solving substring search problems.

What's the best way to manipulate std::string substrings in C++?

The best way to manipulate std::string substrings in C++ involves using built-in methods like substr, insert, erase, append, and replace. This Skill details these standard library functions for efficient string handling.

How to efficiently sort a vector of custom structs in C++?

To efficiently sort a vector of custom structs in C++, you need to apply standard sorting algorithms with custom comparators. This reference provides insights into sorting mechanisms alongside data structure initialization.

Can I use scanf and printf instead of cin and cout for C++ I/O operations?

Yes, you can use scanf and printf instead of cin and cout for C++ I/O operations. This Skill consolidates knowledge on both standard stream operations and traditional C-style input/output functions for flexible coding.

How do I convert between integers and strings in C++?

Converting between integers and strings in C++ requires specific standard library utilities. This reference details integer-to-string and string-to-integer conversions, alongside absolute value calculations and bitwise operations.

Does this C++ reference cover algorithms for prime number checks and GCD?

Yes, this C++ reference covers algorithms for prime number checks and GCD. It provides consolidated insights into these mathematical algorithms, factor calculations, and fundamental data structures for problem-solving.