Markoska, Ramona and Markoski, Aleksandar (2025) Effective prompt engineering for generative AI in C++ programming tasks. World Journal of Advanced Research and Reviews, 25 (2). pp. 1390-1397. ISSN 2581-9615
![WJARR-2025-0516.pdf [thumbnail of WJARR-2025-0516.pdf]](https://eprint.scholarsrepository.com/style/images/fileicons/text.png)
WJARR-2025-0516.pdf - Published Version
Available under License Creative Commons Attribution Non-commercial Share Alike.
Abstract
The rise of Generative AI, propelled by Large Language Models (LLMs), has opened new opportunities to streamline programming tasks across various domains. In C++ programming, renowned for its intricate syntax, memory management complexities, and performance-critical applications, Generative AI offers invaluable support for code generation, optimization, and debugging. However, the effectiveness and accuracy of these AI models rely heavily on the application of prompt engineering—a technique that involves crafting precise, contextually relevant queries to guide the AI's response.This paper delves into the methodology and best practices for effective prompt engineering within the context of a cloud-based C++ training ecosystem. Here, developers and students can leverage AI tools to enhance productivity and learning outcomes. By utilizing advanced AI models such as GPT-4 and Jdroid, integrated within JDoodle, the ecosystem offers an interactive platform for generating, analyzing, and refining C++ code in real time. The study emphasizes strategies for optimizing prompts, including specificity, task segmentation, and iterative refinement, to overcome common challenges in C++ programming. Furthermore, it evaluates the integration of prompt engineering techniques with the cloud C++ training ecosystem, highlighting the scalability and accessibility of this approach for educational purposes. The results demonstrate that well-structured prompts significantly improve the accuracy and relevance of AI-generated solutions, enabling users to tackle complex C++ problems with greater efficiency and reliability. This work lays the groundwork for advancing AI-driven programming methodologies and underscores the critical role of prompt engineering in maximizing the potential of Generative AI tools.
Item Type: | Article |
---|---|
Official URL: | https://doi.org/10.30574/wjarr.2025.25.2.0516 |
Uncontrolled Keywords: | Prompt Engineering; Generative AI; LLMs; Cloud training ecosystem; C++ |
Depositing User: | Editor WJARR |
Date Deposited: | 15 Jul 2025 15:46 |
Related URLs: | |
URI: | https://eprint.scholarsrepository.com/id/eprint/795 |