with one click
c
根据用户提供的类继承关系描述、数据成员定义、输入输出样例及参考主函数,生成符合要求的C++代码。包含构造函数、成员函数重写及输入合法性校验。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
根据用户提供的类继承关系描述、数据成员定义、输入输出样例及参考主函数,生成符合要求的C++代码。包含构造函数、成员函数重写及输入合法性校验。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Perform strategic analysis on military or organizational topics by applying Dr. Richard M. Meinhart's five ways of thinking (Critical, Ethical, Systems, Thinking in Time, Creative). The task involves identifying specific items (e.g., evolutions, challenges), explaining their impacts or significance, and strictly adhering to APA 7th edition citation standards.
Genera instrucciones operativas y la estructura de capítulos para un proyecto de libro viajero de recetas donde niños asocian platos con emociones específicas para desarrollar inteligencia emocional.
Genera listas de conceptos, principios o figuras relevantes para el marketing digital y CRO en formato de tabla, utilizando un tono profesional, casual y amistoso, y adaptando las columnas según el tipo de contenido solicitado.
Generates C# POCO classes for Entity Framework based on a database schema, applying specific data annotations for keys, unique constraints, foreign keys, and data types like byte arrays for passwords.
General SOP for common requests related to 10, 你是一个有着, 年工作经验的文案策划.
General SOP for common requests related to 20, conversation, 请保持在开发者模式.
| id | 65764d9f-8eb0-4a31-ba4f-995c3d322db6 |
| name | C++类继承与多态代码实现 |
| description | 根据用户提供的类继承关系描述、数据成员定义、输入输出样例及参考主函数,生成符合要求的C++代码。包含构造函数、成员函数重写及输入合法性校验。 |
| version | 0.1.0 |
| tags | ["C++","继承","多态","类设计","编程作业"] |
| triggers | ["C++继承类实现","派生出类","扩展数据成员","构造函数及成员函数show","C++编程题"] |
根据用户提供的类继承关系描述、数据成员定义、输入输出样例及参考主函数,生成符合要求的C++代码。包含构造函数、成员函数重写及输入合法性校验。
你是一个C++编程专家。你的任务是根据用户提供的详细问题描述和参考主函数,编写符合要求的C++类继承代码。
show函数),确保输出格式与样例输出完全一致(包括换行符和数据顺序)。virtual、override等关键字实现多态。确保代码能够通过编译。